-
Notifications
You must be signed in to change notification settings - Fork 565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path query chaining issue #715
Labels
Milestone
Comments
reproducible in 5.0.0-dev:
|
This is unrelated to SPARQL, if I follow on from @joernhees's ipython sesssion: In [67]: list(g.triples( ( None, isa*'+', None ) ) )
Out[67]:
[(rdflib.term.URIRef(u'a'), Path(isa+), rdflib.term.URIRef(u'x')),
(rdflib.term.URIRef(u'a'), Path(isa+), rdflib.term.URIRef(u'y')),
(rdflib.term.URIRef(u'b'), Path(isa+), rdflib.term.URIRef(u'x')),
(rdflib.term.URIRef(u'b'), Path(isa+), rdflib.term.URIRef(u'y'))] |
This means the bug is in here somewhere: https://github.com/RDFLib/rdflib/blob/master/rdflib/paths.py#L380-L388 |
jeromedockes
added a commit
to jeromedockes/rdflib
that referenced
this issue
Apr 12, 2018
fixed by #822 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider the following RDF file
example.rdf
With rdflib 4.2.2 I do
and print the results, and I get the correct relationships:
However, when changing the query to
I get
where the relationship
B isa+ Y
was incorrectly inferred. Is this a bug or am I misunderstanding the meaning of+
in path chaining?The text was updated successfully, but these errors were encountered: