Skip to content
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

SAPRQL: bind variables to other variables in subgroups #601

Closed
wants to merge 5 commits into from

Conversation

joernhees
Copy link
Member

until now mainly test-cases in order to fix #580

@joernhees joernhees added bug Something isn't working fix-in-progress SPARQL labels Feb 27, 2016
@joernhees joernhees added this to the rdflib 4.2.2 milestone Feb 27, 2016
simple_problematic_query = '''
select ?s ?o ?x where {
?x s:knows ?o .
{ BIND(?x as ?s). }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gromgull without { } this seems to work...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually i just found out that jena also seems to block this...

sparql --data=https://www.w3.org/2009/sparql/docs/tests/data-sparql11/bind/data.ttl --query=<(echo 'select * { ?s ?p ?o . { BIND(?o as ?z) } }')
------------------------------------------------------------
| s                       | p                      | o | z |
============================================================
| <http://example.org/s1> | <http://example.org/p> | 1 |   |
| <http://example.org/s4> | <http://example.org/p> | 4 |   |
| <http://example.org/s3> | <http://example.org/p> | 3 |   |
| <http://example.org/s2> | <http://example.org/p> | 2 |   |
------------------------------------------------------------

@joernhees
Copy link
Member Author

fixed in #688, partially rebased, closing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix-in-progress SPARQL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BIND not working as expected in SPARQL
2 participants