http://franz.com/ns/allegrograph/6.6.0/shaclConforms
Use SHACL to determine if a dataGraph conforms to a shapesGraph.
A single binding is returned which will be one of:
- true - if all shapes in the dataGraph conform the shapesGraph.
- false - if there is at least one nonconformance.
For example:
SELECT ?valid \{
bind(<http://franz.com/ns/allegrograph/6.6.0/shaclConforms>(:dataGraph) as ?valid)
\} dataGraph can be an IRI, literals 'default' and 'all',` or a variable that is bound to a SPARQL collection (list or set) that was previously created with a function like http://franz.com/ns/allegrograph/6.5.0/fn#makeSPARQLList or http://franz.com/ns/allegrograph/6.5.0/fn#lookupRdfList.
shapesGraph is optional. If supplied, it can be an IRI, a variable that is bound to a SPARQL collection (like the dataGraph). If it is not supplied, then the shapesGraph will be created by following triples in the dataGraph that use the sh:shapesGraph predicate. If there are no such triples, then the shapesGraph will be the same as the dataGraph.
Notes
The following namespace abbreviations are used:
- fti - <http://franz.com/ns/allegrograph/2.2/textindex/>
- geo - <http://franz.com/ns/allegrograph/3.0/geospatial/>
- geofn - <http://franz.com/ns/allegrograph/3.0/geospatial/fn/>
- nd - <http://franz.com/ns/allegrograph/5.0/geo/nd#>
- ndfn - <http://franz.com/ns/allegrograph/5.0/geo/nd/fn#>
- sna - <http://franz.com/ns/allegrograph/4.11/sna/>
The SPARQL magic properties reference has additional information on using AllegroGraph magic properties and functions.