diff service/reasoning/graphop.py @ 984:5da9200418db

reasoning: -v verbose setting, more oneshot support, some custom stuff for mpd commands Ignore-this: 7646fba7b5496eb1f33a87452af6c6de darcs-hash:20150514083000-312f9-ef4db22cf33250e690b6021b6b1968cc788d14cb
author drewp <drewp@bigasterisk.com>
date Thu, 14 May 2015 01:30:00 -0700
parents 4ae49c6adecb
children f3f667769aef
line wrap: on
line diff
--- a/service/reasoning/graphop.py	Thu May 14 01:29:14 2015 -0700
+++ b/service/reasoning/graphop.py	Thu May 14 01:30:00 2015 -0700
@@ -8,7 +8,8 @@
     contexts in the graph and also any statements with the given
     predicates
     """
-    ctxs = map(URIRef, set(g.contexts())) # weird they turned to strings
+
+    ctxs = [ctx.identifier for ctx in g.contexts()]
 
     out = ConjunctiveGraph()
     for stmt in g.quads((None, None, None)):