Skip to content

Commit

Permalink
Fixing error in saving favorites
Browse files Browse the repository at this point in the history
  • Loading branch information
dcollarana authored and dcollarana committed Dec 13, 2017
1 parent 1ad4e7b commit 7009a9c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/utils/dataintegration/GraphStoreManager.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ import play.api.libs.concurrent.Execution.Implicits.defaultContext
object GraphStoreManager {

def postModelToStore(model: Model, graph: String, ws: WSClient): Future[String] = {

val n3Model = RDFUtil.modelToTripleString(model, Lang.N3)
postModelToStore(n3Model, graph, "text/rdf+n3", ws)
val n3Model = RDFUtil.modelToTripleString(model, Lang.NTRIPLES)
postModelToStore(n3Model, graph, "application/n-triples", ws)
}

def postModelToStore(model: String, graph: String, contentType: String = "application/n-triples", ws: WSClient): Future[String] = {
Expand Down

0 comments on commit 7009a9c

Please sign in to comment.