Home / Docs / Validation & SHACL Gates
Ontology engineering · Kinetics
Validation, SHACL shapes & governed actions
OWL tells you what can be inferred; SHACL tells you what must be true before a record is accepted or an action executes.
Closing the open-world assumption
OWL 2 operates under the Open-World Assumption (OWA): missing information is treated as unknown rather than invalid. In operational systems—approving a purchase order, releasing an inspected turbine, or permitting an AI agent to trigger a writeback—missing required fields or unsigned evidence must fail closed.
W3C SHACL (Shapes Constraint Language) acts as the deterministic contract layer sitting in front of every ingest pipeline and operational action.
Example: SHACL Release Gate shape
This shape matches the live sandbox on the Ontology overview: an asset cannot transition to Approved unless a signed inspection process is linked and calibration is valid.
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix ta: <https://thompsonaxiomata.com/ns/ops#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
ta:ReleaseGateShape a sh:NodeShape ;
sh:targetClass ta:MaintainableAsset ;
sh:property [
sh:path ta:verifiedBy ;
sh:class ta:InspectionProcess ;
sh:minCount 1 ;
sh:message "Release blocked: at least one signed InspectionProcess is required." ;
] ;
sh:property [
sh:path ta:calibrationValid ;
sh:datatype xsd:boolean ;
sh:hasValue true ;
sh:message "Release blocked: asset calibration must be currently valid." ;
] .
Anatomy of a governed operational action
- Propose mutation: A human operator or AI agent submits a typed action payload against a target object IRI.
- Stage in transaction graph: Apply candidate edits in an isolated staging graph without mutating production records.
- Validate with SHACL + authority rules: Run
pySHACL(or triple-store validator) and check role/threshold constraints. - Commit or reject with structured report: On
sh:conforms true, commit atomically and emit aprov:Activityaudit log entry; on failure, return exactsh:ValidationResultpaths so the caller—human or LLM—knows precisely what evidence is missing.
Try it live in your browser: Run shapes directly in the SHACL Validator (pySHACL WebAssembly) ↗ or test deterministic authority rules against an LLM draft in Approval Check ↗.