Down the RDFS Rabbit Hole

· Source: The Ontologist · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics, Software Development & Engineering · Depth: Advanced, medium

Summary

The article explores the implications of RDF 1.2 features, specifically reification, SHACL, and RDFS properties like `rdfs:subClassOf` and `rdfs:subPropertyOf`, focusing on how subclassing properties interacts with SHACL shapes and RDF-Star annotations. It highlights that `rdfs:subPropertyOf` under RDFS entailment is a triple-generating inference, which contrasts with SHACL's default operation on the asserted graph. SHACL 1.2 introduces property shape inheritance via `sh:and`, `sh:path` expression specialization using alternative paths (`|`), and inverse/path-based subproperty expressions, offering constraint inheritance without RDFS triple generation. RDF-Star annotations on `rdfs:subPropertyOf` assertions, using predicates like `ex:entailmentRequired` and `ex:inverseConstrainedBy`, provide metadata to manage the "entailment gap" between RDFS and SHACL, enabling pipelines to materialise entailed triples before validation. The article also discusses annotating OWL property chain axioms and symmetric/functional properties.

Key takeaway

For AI Scientists designing knowledge graphs with RDF 1.2, understanding the "entailment gap" between RDFS and SHACL is crucial. You should use RDF-Star annotations on `rdfs:subPropertyOf` assertions to explicitly manage when RDFS entailment is required before SHACL validation. This approach allows your pipeline to generate necessary inferred triples, ensuring accurate validation without sacrificing SHACL's closed-world benefits.

Key insights

RDF-Star annotations bridge the gap between RDFS entailment and SHACL validation for property hierarchies.

Principles

Method

Annotate `rdfs:subPropertyOf` triples with RDF-Star to specify pre-validation materialisation requirements, enabling SHACL to validate against a graph that includes RDFS entailments.

In practice

Topics

Best for: AI Scientist, AI Architect, Research Scientist, Data Scientist

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by The Ontologist.