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

VOID query equivalent to the _fetchStructure in endpoints.js #26

Open
JervenBolleman opened this issue Aug 26, 2020 · 0 comments
Open

Comments

@JervenBolleman
Copy link

As an alternative to SHACL for quite a few SIB endpoints we have an extended VOID file in the Service Description.

BASE <http://rdfs.org/ns/void#>
PREFIX v:<http://ldf.fi/void-ext#>
PREFIX s:<http://www.w3.org/ns/sparql-service-description#>
SELECT ?cls ?property ?linkType ?dataType
WHERE {
BIND(<${this.graph}> AS ?name)
[] s:name ?name; 
    s:graph/:classPartition ?classPartition .
?classPartition :class ?cls ; 
  :propertyPartition ?propertyPartition ; 
  :property ?property .
OPTIONAL { ?propertyPartition :classPartition/:class ?linkType }
OPTIONAL { ?propertyPartition v:datatypePartition/v:datatype ?dataType }
}

This could be used as a second alternative for ShACL.

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

No branches or pull requests

1 participant