Monday, April 20, 2026

AI + Semantic Web in 2026? SHACL vs OWL

While initiated by the same person, WWW creator Tim Berners-Lee.
Semantic Web has never got similar attention and following as the original "web".

Maybe that is because there was not Mosaic and Netscape that made WWW what it is: extremely popular.

That is not to say that Semantic Web is not good or useful.
It is just not for "mainstream", since it is complicated.

But wait, isn't AI LLM also super complicated, but still extremely popular?

Yes, and this is exactly the answer:
LLMs got their "Netscape" moment in OpenAI ChatGPT.
Easy to use user interface, and related API.

Anyway, Semantic Web still exists, it is getting better, while not popular.

A not so new addition (2017) to stack called SHACL has additional handicap: awkward name.
Previous was at least trying to be clever/cute "OWL"

This is a good place to read about this "semantic" progress.

Kurt Cagle | Substack

How SHACL Makes Your LLMs Hum - by Kurt Cagle

Shapes Constraint Language (SHACL) @w3.org

SHACL - Wikipedia

Shapes Constraint Language[1] (SHACL) is a World Wide Web Consortium (W3C) standard language for describing Resource Description Framework (RDF) graphs. SHACL has been designed to enhance the semantic and technical interoperability layers of ontologies expressed as RDF graphs.

Base standards
Related standards
DomainSemantic Web

AI Overview

SHACL (Shapes Constraint Language) is a W3C standard language used to validate and describe 
RDF graphs by enforcing structural rules (shapes) on data. It ensures RDF data conforms to required formats (e.g., specific datatypes, cardinalities), acting as a validation schema. SHACL is designed to work directly with RDF and uses SPARQL for complex validations.
What is SHACL?
  • Shapes Graph: Defines constraints using node shapes (about the node) and property shapes (about values connected to the node).
  • Data Validation: It checks a "data graph" against a "shapes graph" to ensure compliance.
  • Capabilities: It ensures data quality, validates RDF against structural requirements, and can define constraints such as mandatory fields, data types (e.g., xsd:string), or valid value ranges.
Relationship to RDF
  • Native RDF Integration: SHACL shapes themselves are expressed in RDF, usually via the Turtle format.
  • Validates Data Graphs: SHACL operates directly on RDF triples (graphs), validating subjects, predicates, and objects.
  • Class/Instance Validation: It often targets RDF instances of specific classes within a dataset.
Relationship to SPARQL
  • Backend Engine: SHACL-SPARQL is an extension mechanism where validation constraints are defined as SPARQL queries.
  • Complex Rules: While core SHACL handles basic validation, SPARQL is used for complex cross-property or complex structural validation rules.
  • Query Transformation: A SHACL processor can transform shape definitions into SPARQL queries to validate data.
SHACL vs. RDF Schema/OWL
  • RDF Schema (RDFS) and OWL are used for inferencing (deriving new knowledge), while SHACL is used for validation (checking if data is right).
SHACL provides a standard way to validate that RDF data matches the intended structure and content constraints.