comparison service/reasoning/inputgraph.py @ 1266:ee5698ef64dd

add separate :matchPredicate support. some build and log edits. Ignore-this: acdab8c2859e5f8622b491228d0c74dd darcs-hash:564fab06788fee02dbb69e33c087085313fc24e1
author drewp <drewp@bigasterisk.com>
date Sat, 20 Apr 2019 23:36:30 -0700
parents d8acab2b01f5
children 53a2664f450a
comparison
equal deleted inserted replaced
1265:1ddd1f057749 1266:ee5698ef64dd
38 self.onChange = onChange 38 self.onChange = onChange
39 self.graph = ConjunctiveGraph() 39 self.graph = ConjunctiveGraph()
40 self.patchSource = ReconnectingPatchSource( 40 self.patchSource = ReconnectingPatchSource(
41 URIRef('http://bang:9072/graph/home'), 41 URIRef('http://bang:9072/graph/home'),
42 #URIRef('http://frontdoor:10012/graph/events'), 42 #URIRef('http://frontdoor:10012/graph/events'),
43 self.onPatch, reconnectSecs=10) 43 self.onPatch, reconnectSecs=10, agent='reasoning')
44 44
45 def onPatch(self, p, fullGraph): 45 def onPatch(self, p, fullGraph):
46 if fullGraph: 46 if fullGraph:
47 self.graph = ConjunctiveGraph() 47 self.graph = ConjunctiveGraph()
48 patchQuads(self.graph, 48 patchQuads(self.graph,