Open RomainEndelin opened 10 years ago
I added a test for this issue: aeaf43369e4f7ef766b5b09414ae6abed8d705cc
Just for clarity, the tutorial reports that the results should be:
>>> pprint(list(targetGraph.query(
'SELECT ?ANCESTOR { fam:david fam:ancestor ?ANCESTOR }',initNs=nsMapping)))
[rdflib.URIRef('http://dev.w3.org/2000/10/swap/test/cwm/fam.n3#albert'),
rdflib.URIRef('http://dev.w3.org/2000/10/swap/test/cwm/fam.n3#bevan'),
rdflib.URIRef('http://dev.w3.org/2000/10/swap/test/cwm/fam.n3#christine')]
I try to follow the tutorial, and I passed the Magic Set Method, but I am now stuck in Backward-chaining Inference section.
I followed the steps :
After checking a bit, it appears that topDownStore is correctly initialized:
But the problem rather comes when initializing the targetGraph:
I suppose there had been some changes in the way rdflib.Graph deals with store, but I wasn't able to find anything relevant about it...
Thanks