Skip to content

Commit

Permalink
rdf version is serialized in the turtle format
Browse files Browse the repository at this point in the history
  • Loading branch information
Goksel Misirli committed Oct 28, 2016
1 parent 878ee40 commit 044a871
Show file tree
Hide file tree
Showing 4 changed files with 14,321 additions and 592,616 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@
(addSPARQLConstructQueryResult rdfModel rdfModel "rdfinference/ActivatorEncodingCDS.sparql")
(addSPARQLConstructQueryResult rdfModel rdfModel "rdfinference/KinaseEncodingCDS.sparql")
(addSPARQLConstructQueryResult rdfModel rdfModel "rdfinference/ResponseRegulatorEncodingCDS.sparql")
(save rdfModel "sybiontkb_rdfversion_inferred.rdf")
(save rdfModel "sybiontkb_rdfversion_inferred.ttl")
)


Expand Down
9 changes: 8 additions & 1 deletion sybiont_generator/src/sybiont_generator/rdf.clj
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,21 @@
(println "Wrote the model")
)

(defn saveRdfXml[model filePath]
;(.write model (new FileOutputStream (new File filePath)) "RDF/XML-ABBREV")
(.write model (new FileOutputStream (new File filePath)) "RDF/XML")
;(.write model (new FileOutputStream (new File filePath)) "Turtle")
(println "Wrote the model")
)


(defn addSPARQLConstructQueryResult[modelToAdd modelToQuery sparqlFilePath]
(
let [resultModel (executeSPARQLConstructQuery modelToQuery sparqlFilePath)]
(if (.isEmpty resultModel)
(println (concat sparqlFilePath " did not return any results!"))
(do
(println "Adding query results")
(println (str "Adding query results for " sparqlFilePath))
(.add modelToAdd resultModel)
)
)
Expand Down
Loading

0 comments on commit 044a871

Please sign in to comment.