http://franz.com/ns/allegrograph/6.6.0/shaclShapeValidationReport2

Produce a SHACL validation report for a set of nodes in the dataGraph dataGraph. E.g.,

construct {
?s ?p ?o
} where {
bind(<http://franz.com/ns/allegrograph/6.5.0/fn#makeSPARQLList>(:shape1, :shape2) as ?shapes)
bind(<http://franz.com/ns/allegrograph/6.5.0/fn#makeSPARQLList>(:node1, :node2, :node3) as ?shapes)
(?s ?p ?o) <http://franz.com/ns/allegrograph/6.6.0/shaclShapeValidationReport2>
(:dataGraph :shapesGraph ?shapes ?nodes)
}

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.

The example query would validate the three nodes :node1, :node2, and :node3 against the two shapes :shape1 and :shape2 in the shapesGraph :shapesGraph. See shaclShapeValidationReport2

Notes

The following namespace abbreviations are used:

The SPARQL magic properties reference has additional information on using AllegroGraph magic properties and functions.