RDFS: Semantic Hierarchies and Inference

RDF Schema (RDFS) provides the foundational vocabulary for defining the structure and relationships within RDF data. It allows for the creation of lightweight ontologies by defining classes and properties.

1. Class Hierarchies: rdfs:subClassOf

The core of RDFS taxonomy is the rdfs:subClassOf property. It establishes a specialization relationship where every instance of a subclass is mathematically an instance of its superclass.

2. Property Constraints: Domain and Range

RDFS uses domain and range to provide semantic context to predicates. Crucially, these are Inference Rules, not validation constraints.

2.1 rdfs:domain

Specifies the class of the Subject of a property.

2.2 rdfs:range

Specifies the class of the Object of a property.

3. Property Hierarchies: rdfs:subPropertyOf

Properties can also be organized hierarchically.

4. Technical Summary Table

ConstructPurposeMathematical Effect
rdfs:ClassDefines a typeSets a set boundary
subClassOfSpecializationC1 \subseteq C2
subPropertyOfProperty specializationP1 \subseteq P2
rdfs:domainSubject typing\forall s, o : P(s,o) \implies D(s)
rdfs:rangeObject typing\forall s, o : P(s,o) \implies R(o)

5. Summary

RDFS is the "Type System" of the Semantic Web. By using simple logical rules, it transforms a flat graph of triples into a structured knowledge base where information about types and relationships can be discovered through automated reasoning rather than manual labeling.