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

Decouple viewport feature from CBD pragma #43

Open
mchlrch opened this issue Oct 18, 2021 · 1 comment
Open

Decouple viewport feature from CBD pragma #43

mchlrch opened this issue Oct 18, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@mchlrch
Copy link
Member

mchlrch commented Oct 18, 2021

ATM the feature for predefined viewport specification relies on DESCRIBE <.well-known/void> with CBD pragma. It currently does not work on stores that don't support the CBD pragma.

We could switch to loading all statements from all named-graphs (one or many) that are marked as context for the void:

Like this: <.well-known/void> spex:loadFromContext <my-named-graph> .

And then load the void with something like the following:

base <http://example.org/>
construct {
    ?s ?p ?o .
} where {
    {
        select distinct ?s ?p ?o where {
            <.well-known/void> spex:loadFromContext ?g .
            graph ?g {                
                ?s ?p ?o .
            }
        }
    }
}

Marking the named graphs explicitly like this prevents us from accidentally loading too much.

@BenjaminHofstetter
Copy link
Contributor

This basically addresses the issue of how to store the SHACL information to be able to load it with SPARQL.

@BenjaminHofstetter BenjaminHofstetter added the enhancement New feature or request label Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants