We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When querying tree-like structures, it is often useful to find the leaves of an arbitrary length path.
In some case it is possible to do this using MINUS or FILTER NOT EXISTS to remove solutions:
MINUS
FILTER NOT EXISTS
:john foaf:knows+ ?leaf . MINUS { ?leaf foaf:knows [] }
However for more complex traversals where the arbitrary length match is part of a larger sequence it can be hard to formulate.
unknown
Allow use of some modifier like ~ that will exclude the intermediate nodes along that path segment.
~
:john foaf:knows+~ ?leaf .
In case the graph contains cyclical, then stop traversed when finding an already visited node and give no result for that traversal.
None foreseen
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Why?
When querying tree-like structures, it is often useful to find the leaves of an arbitrary length path.
In some case it is possible to do this using
MINUS
orFILTER NOT EXISTS
to remove solutions:However for more complex traversals where the arbitrary length match is part of a larger sequence it can be hard to formulate.
Previous work
unknown
Proposed solution
Allow use of some modifier like
~
that will exclude the intermediate nodes along that path segment.In case the graph contains cyclical, then stop traversed when finding an already visited node and give no result for that traversal.
Considerations for backward compatibility
None foreseen
The text was updated successfully, but these errors were encountered: