SHACL, the Shapes Constraint Language, is a W3C language for validating RDF data graphs against specified constraints expressed through shapes. A data graph represents statements; a shapes graph declares the conditions used for validation; a target identifies relevant nodes; and a validation report records the results. Passing a shape-based check does not automatically establish the truth of the statements, the completeness of real-world knowledge or the legitimacy of an action. A graph can conform to every declared constraint while using a perfectly formed but incorrect definition.
Vocabulary Coding and Engineering (VCE) can investigate how formal graph validation supports portable knowledge without confusing representation with reality. The W3C SHACL Recommendation of 2017 provides the established basis for this discussion. A SHACL 1.2 Core Working Draft dated 26 November 2026 is part of ongoing standards development; it is a draft, not a final Recommendation. eduKate proposes a versioned semantic conformance harness that pairs declared graph constraints with independently evaluated questions, evidence and meaning boundaries. This is a research proposal, not a new standard or universal truth validator.
- RDF data graph: the graph of statements supplied for validation.
- Shapes graph: declarations specifying the shapes and constraints used in a validation procedure.
- Target: a mechanism identifying relevant nodes for a shape.
- Focus node: a node against which a shape is evaluated.
- Constraint: a formally described condition checked by the validator.
- Validation report: structured results of the validation process.
- Conformance: satisfaction of the declared validation conditions, within the relevant procedure.
- Frontier question: can graph conformance be paired with evidence and task tests that detect validly encoded misunderstandings?
Chapter index
- 1. Begin with a fictional licence record
- 2. Data graph and shapes graph play different roles
- 3. Targets, focus nodes and property paths
- 4. Cardinality and datatypes answer narrow questions
- 5. Worked example: three synthetic permission nodes
- 6. Validation reports are evidence about the declared checks
- 7. Closed shapes and the open-world distinction
- 8. Validation is not the same as logical inference
- 9. Versioning the standard: a Recommendation and a Working Draft are not synonyms
- 10. Text zoom TX0–TX6: a graph carries more than a label
- 11. Civilisation zoom Z0–Z2: learning to check the answer and its conditions
- 12. Civilisation zoom Z3–Z6: validation as knowledge infrastructure
- 13. Ztime: conformance has a validation context
- 14. Frontier experiment: the semantic conformance harness
- 15. Four-week progression and EnDist
- Comparison table
- Conclusion
- Research sources
1. Begin with a fictional licence record
Imagine a fictional library issues time-limited room permissions. Its knowledge graph records an identifier, a person, a room, a start time and an end time for each permission. A validation rule requires exactly one identifier and a value for each required time field. A record passes those requirements even though the listed room is not the one authorised by the original decision.
The validation procedure did not necessarily malfunction. It established the declared properties of the graph. The error concerns the correspondence between the graph and the source decision. A dependable information system needs to know both things: whether a record has the required shape and whether its contents correctly represent the relevant evidence.
2. Data graph and shapes graph play different roles
RDF expresses information through relationships between subjects, predicates and objects. A data graph contains statements being evaluated. In SHACL, a shapes graph supplies the shapes and constraints used in validation. The graphs play different logical roles even though they are represented using RDF. Validation is an operation over the supplied inputs rather than a universal process for verifying every real-world fact.
The distinction makes a validation result interpretable. If the requirements change, the same data graph may produce different results. If the data changes, the same shapes may detect new failures. Preserve the identifiers and versions of both inputs. Without that information, a claim that a graph passed validation is difficult to assess or reproduce.
3. Targets, focus nodes and property paths
A shape can declare targets specifying which nodes should be assessed under that shape. The focus node is the node being validated. Property shapes can use paths to identify relevant values connected with a focus node. This allows requirements to be scoped to particular kinds of records or relationships, rather than indiscriminately applying one rule to every node.
For an invented room-permission system, a shape might target nodes representing permission records and evaluate their room identifiers. A record that has not been recognised as a relevant target may not be assessed by that shape. This is why a good evaluation checks target coverage as well as reported violations. A rule can be correct but fail to reach the records for which it was intended.
4. Cardinality and datatypes answer narrow questions
SHACL Core supports constraints such as minimum and maximum counts of values and datatype requirements. A shape can require at least one value for a property or constrain the permissible number of values. Datatype checks can establish whether a value meets a declared representational requirement. These are useful ways to detect incomplete or malformed records.
A valid date value does not prove that the recorded date corresponds to the intended event. A required room identifier can be present but refer to the wrong room. A minimum count does not establish that the source supports every supplied value. Structural and formal constraints can help detect some errors, but evidence assessment remains separate.
5. Worked example: three synthetic permission nodes
Suppose a fictional shapes graph targets permission records and requires exactly one room identifier and one effective-date value of the specified datatype. Record A has no room identifier. Record B has two distinct room identifiers. Record C has one room identifier and a correctly typed date. Under the assumed rules and data, A violates the minimum count, B violates the maximum count and C satisfies these two requirements.
Now suppose independent source evidence shows that C identifies the wrong room. Its graph can still conform to the declared shape. This is not a contradiction: the original constraint did not check correspondence with the authoritative source. To test that property, an appropriate additional process must establish the intended room and compare it with the record. These examples are illustrative, not executed SHACL test results.
6. Validation reports are evidence about the declared checks
SHACL validation reports can describe validation results using a defined vocabulary. Results can identify the relevant focus node, constraint component and other information as applicable. A report of nonconformance can support investigation of a particular data-quality problem. A report of conformance describes a narrower achievement under the supplied graph and shapes.
Do not convert a validation report into an unsupported judgement about a person or institution. A missing field might reflect an incomplete import rather than a negative fact about the real world. The appropriate response may be to request evidence or correct a record. A violation should not be treated as an automatic authorisation to change data or take action.
7. Closed shapes and the open-world distinction
A closed shape can restrict which properties are permitted for a node according to the relevant SHACL declaration, with specified exceptions where applicable. This is a data-validation requirement. It should not be confused with a claim that every fact not present in an RDF or OWL knowledge representation is false.
Under an open-world semantics, absence of an asserted fact does not necessarily entail its negation. A missing approval record can violate a local completeness requirement without proving that an approval never occurred. A vocabulary engineer must therefore separate missing information, failed constraints and negative propositions. The appropriate inference depends on the declared semantics and evidence.
8. Validation is not the same as logical inference
An ontology may support logical consequences under its adopted semantics. SHACL validation checks a graph against shapes using the relevant procedure. Entailed information may be made available depending on the validation environment and declared entailment arrangements. A result should be interpreted in light of those choices, rather than assuming that every processor necessarily evaluates the same inferred statements.
Consider two fictional datasets that encode the same relationship using different representations. One contains an explicit statement while the other relies on an inference. Whether a particular validation check sees the required value can depend on the supplied graph and validation arrangement. Document these conditions, and test the actual implementation rather than make an unsupported guarantee based on the word inference.
9. Versioning the standard: a Recommendation and a Working Draft are not synonyms
The W3C published SHACL as a Recommendation in 2017. The SHACL 1.2 Core document dated 26 November 2026 is explicitly a Working Draft. It describes ongoing work and may be revised before any later Recommendation. A system should identify which version and feature set it implements. It should not advertise a draft feature as an established guarantee simply because it appears in a W3C publication.
This is itself an important vocabulary lesson. Draft, Recommendation, implementation support and conformance claim have distinct meanings. A documented development direction is useful for planning research, but actual deployment requires verification against the supported specifications and tools. Record publication dates and status rather than silently substitute the newest text for the currently applicable requirement.
10. Text zoom TX0–TX6: a graph carries more than a label
At TX0, a word or identifier supplies a local representation; at TX1, a phrase or concept label narrows the meaning; at TX2, a graph statement represents a relationship; at TX3 and TX4, conditions and contextual statements qualify it; at TX5, the domain representation defines intended use; at TX6, evidence sources and institutional rules may establish applicability.
The proposed VCE harness should test meaning at the necessary levels rather than assume that a correctly typed property value resolves every question. A graph may preserve the term approved while losing the condition that approval applies only on a specified date. The TX framework is an organising proposal for describing such failures, not a standard SHACL feature.
11. Civilisation zoom Z0–Z2: learning to check the answer and its conditions
At Z0, a learner distinguishes a correct format from a correct answer. At Z1, people compare statements with supporting evidence. At Z2, a learning community develops shared examples of correct records, incomplete records and misleading but well-formed records. The Fencing Method makes the boundaries inspectable through contrast cases.
A student who fills every field of a worksheet has not necessarily understood the question. Similarly, a graph with every required property can still misrepresent a source. The educational objective is to check the relationship between evidence and meaning, not merely completeness of a form. Graph validation is one technical analogue of checking a declared requirement.
12. Civilisation zoom Z3–Z6: validation as knowledge infrastructure
At Z3, institutions use structured records to support coordination and reporting. At Z4, public systems need appropriate accountability, evidence and safeguards. At Z5, networks exchange graphs and vocabularies across differing definitions and technical environments. At Z6, future generations may need to reconstruct what earlier knowledge models represented and how their validation results were produced.
eduKate’s World Source Registry, concept library and crosswalk ideas motivate a portable package containing definitions, shapes, evidence, competency questions and versioned results. The Second Intelligence Pool provides a conceptual setting for examining cooperation between human and artificial capabilities. None of these proposals removes the need for legitimate authority, appropriate access control or independent evidence review.
13. Ztime: conformance has a validation context
At T0, a graph and its governing shapes are specified. At T1, validation takes place under a declared implementation. At T2, a validation report records the results. At T3, a definition, data record or shapes version may change. At T4 and beyond, historical records can be assessed under their original conditions or deliberately migrated to new requirements.
Keep the data and shapes versions, validator version, entailment setting, date and report distinct. A historical conformance report is not automatically a statement about current data. A later failed check may reflect changed requirements rather than an earlier processing error. The Ztime framework preserves those differences so reviewers can investigate the appropriate history.
14. Frontier experiment: the semantic conformance harness
Construct wholly synthetic graphs representing fictional classroom permissions and service records. Independently annotate the intended meaning, supporting sources and competency questions. Prepare datasets containing missing properties, wrong datatypes, incorrect targets, conflicting evidence, superseded definitions and well-formed but false assertions. Compare a schema-only validation baseline with a VCE-assisted workflow combining SHACL checks, source comparisons and independent question-level tests.
Measure detected constraint failures, target coverage, independently established meaning errors, false alarms, unresolved evidence and review effort. Include cases that should pass the formal shapes while failing an evidence check, and cases where a different valid representation legitimately satisfies the task. Evaluate separately under supported specification versions, and do not claim a new guarantee from the working draft. This is a proposed experiment; no results have been obtained for this article.
15. Four-week progression and EnDist
Week one: draw fictional data graphs and distinguish their statements from validation requirements. Week two: work through the invented cardinality example and identify what the checks do not establish. Week three: create well-formed but unsupported records and define independent evidence tests. Week four: design a versioned validation evaluation with competency questions, boundary cases and clear acceptance conditions.
EnDist is eduKate’s proposed conceptual framework for useful capability after misunderstanding, coordination and rework losses. A specific experiment might measure independently accepted task outcomes against the time required to validate, investigate and correct records. EnDist is not a validated physical quantity or a universal metric of intelligence. The frontier is to preserve reliable meaning across the whole workflow, not merely maximise the percentage of graphs labelled conformant.
Comparison table
| Term | Meaning | Does not establish |
|---|---|---|
| Data graph | Statements supplied for assessment | Real-world truth |
| Shapes graph | Declared validation requirements | Complete set of necessary requirements |
| Target | Identifies relevant nodes | Coverage of every intended record |
| Constraint | Specified formal check | Correct interpretation of an original decision |
| Validation report | Results under supplied inputs | Universal correctness |
| Working Draft | Developing specification text | Final W3C Recommendation |
| Semantic conformance harness | Proposed combined independent evaluation | Validated general truth engine |
Conclusion
SHACL supplies a powerful and precisely scoped language for checking graph constraints. Vocabulary Coding and Engineering adds a researchable distinction: a record may be structurally conformant, supported by evidence, semantically adequate and appropriate for a task to different degrees. A dependable knowledge system must establish each relevant property independently and preserve the context in which it was evaluated.
Continue reading in the vocabulary library
- What is Vocabulary? Definition and Explanation
- Scale, scope, resolution, granularity and zoom level
- Semantic drift and meaning loss
- Text-to-SQL and meaning-to-query regression
- Active learning and semantic boundary acquisition
- Ontology engineering and semantic regression
- Nanopublications, named graphs and provenance
- Open world, closed world, unknown and false
- Assumptions, constraints, invariants, guarantees and exceptions