changeset 1284:7b43bfa018bf

comments Ignore-this: a71a3e7f33dc4ba4c61592d805a8bc84
author Drew Perttula <drewp@bigasterisk.com>
date Tue, 26 Jan 2016 11:37:54 +0000
parents 349712ddb02d
children 7d33056233f9
files light9/rdfdb/rdflibpatch.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/light9/rdfdb/rdflibpatch.py	Sun Jun 14 18:51:01 2015 +0000
+++ b/light9/rdfdb/rdflibpatch.py	Tue Jan 26 11:37:54 2016 +0000
@@ -59,12 +59,12 @@
         return False
     return spoi in graph.quads()
 
-
+# some of the following workarounds may be fixed in https://github.com/RDFLib/rdflib/issues/299
 def graphFromQuads(q):
     g = ConjunctiveGraph()
     #g.addN(q) # no effect on nquad output
     for s,p,o,c in q:
-        #g.get_context(c).add((s,p,o)) # kind of works with broken rdflib nquad serializer code
+        #g.get_context(c).add((s,p,o)) # kind of works with broken rdflib nquad serializer code; you need this for json_ld serialize to work :(
         g.store.add((s,p,o), c) # no effect on nquad output
     return g