Closed schivmeister closed 5 months ago
To enhance reuse and shrink the graph given to the engine, one can define a custom Node, for example:
a4g_shape:PlainLiteral a sh:NodeShape ;
sh:or (
[ sh:datatype xsd:string ]
[ sh:datatype rdf:langString ]
) .
Then, a given property can then reference it through:
sh:node a4g_shape:PlainLiteral
We implemented a one-line version of the original proposal and as seen in the official SHACL shapes for the SHACL specs.