Skip to main content

Module turtle_shapes

Module turtle_shapes 

Source
Expand description

Compile RDF Turtle / N3 SHACL shapes into CompiledShape (UE-050).

Prefer JSON ShapeSpec for Node/Civics admission (already complete). This path admits classical sh:NodeShape documents so ontology authors can keep Turtle sources. Parsing reuses super::text_input::build_graph; all SHACL core + Qualia modality predicates listed below are mapped, and unknown sh:* constraint predicates fail closed on compile.

Functionsยง

shapes_from_turtle
Compile a Turtle / N3 SHACL document into CompiledShape values.
validate_turtle_shapes
Validate N3/N-Triples data against shapes compiled from Turtle shapes_ttl.