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

Allow SPARQL code in shape map's node selectors #93

Open
labra opened this issue Jun 23, 2019 · 0 comments
Open

Allow SPARQL code in shape map's node selectors #93

labra opened this issue Jun 23, 2019 · 0 comments
Labels

Comments

@labra
Copy link
Contributor

labra commented Jun 23, 2019

In order to validate RDF behind SPARQL endpoints, several ShEx implementation have extended node selectors in shape maps with SPARQL queries.

This allows, for example to use the following syntax:

SPARQL ' ' 'SELECT * WHERE {
 ?x rdfs:subClassOf*/rdf:type :Person .
?x :birthPlace :Spain 
}'''@<SpaniardShape>

to check all nodes that are instances of :Person and whose :birthPlace is :Spain to conform with <SpaniardShape>.

At this moment, both Shex.js and SHalclEX support this feature and with the recent adoption of ShEx in wikidata this feature is being used a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant