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

Fix handling of EXISTS inside BIND #1794

Merged

Commits on Apr 15, 2022

  1. Fix handling of EXISTS inside BIND

    This patch fixes an issue with `BIND( EXISTS ... )` in SPARQL,
    for example:
    
    ```sparql
    SELECT * WHERE {
        BIND(
    	EXISTS {
    	    <http://example.com/a>
    	    <http://example.com/b>
    	    <http://example.com/c>
    	}
    	AS ?bound
        )
    }
    ```
    
    The graph pattern of `EXISTS` needs to be translated for it to operate
    correctly during evaluation, but this was not happening. This patch
    corrects that so that the graph pattern is translated as part of
    translating `BIND`.
    
    This patch also adds a bunch of tests for EXISTS to ensure there is no
    regression and that various EXISTS cases function correctly.
    
    Fixes RDFLib#1472
    aucampia committed Apr 15, 2022
    Configuration menu
    Copy the full SHA
    ff49579 View commit details
    Browse the repository at this point in the history