RDF Schema (RDFS) is a World Wide Web Consortium (W3C) standard that provides a simple, core vocabulary for defining the structure and semantics of data in an RDF graph. It introduces fundamental terms like rdfs:Class, rdfs:subClassOf, rdfs:subPropertyOf, and rdfs:domain and rdfs:range to organize entities into hierarchies and define constraints on how properties can be used. Unlike a rigid schema-on-write model, RDFS allows for flexible, incremental schema evolution where new types and relationships can be added without invalidating existing data.
Glossary
RDF Schema (RDFS)

What is RDF Schema (RDFS)?
RDF Schema (RDFS) is a semantic extension of the Resource Description Framework (RDF) that provides a basic vocabulary for defining taxonomies of classes and properties.
As a foundational layer for semantic reasoning, RDFS enables basic logical inference. For instance, declaring that Dog is a subclass of Animal allows a semantic reasoning engine to infer that any resource typed as a Dog is also an Animal. This capability is essential for integrating heterogeneous data sources via semantic integration pipelines and forms the basis for more expressive languages like the Web Ontology Language (OWL). RDFS is a cornerstone technology for building interoperable enterprise knowledge graphs and enabling semantic search.
Core RDFS Vocabulary
RDF Schema (RDFS) provides a foundational set of classes and properties for defining basic taxonomies and hierarchies within an RDF graph. It is a semantic extension of RDF that enables the creation of simple ontologies.
rdfs:Class
The rdfs:Class is the RDFS construct used to define a category or type of resources. It is the class of all classes in RDFS, analogous to the concept of a 'type' or 'category' in other modeling paradigms.
- Usage: Declare a new class using
ex:Person a rdfs:Class . - Purpose: Groups resources that share common characteristics.
- Example:
ex:Vehicle,ex:Employee, andex:Documentwould all be declared as instances ofrdfs:Class.
rdfs:subClassOf
The rdfs:subClassOf property establishes a hierarchical relationship between two classes, indicating that all instances of the subclass are also instances of the superclass. This enables inheritance of characteristics.
- Usage:
ex:Car rdfs:subClassOf ex:Vehicle . - Semantics: If
Ais a subclass ofB, then any resource of typeAis also implicitly of typeB. This supports taxonomic reasoning. - Example:
ex:Manager rdfs:subClassOf ex:Employee .implies every manager is an employee.
rdfs:Property
The rdfs:Property is the class of all RDF properties. It is used to declare that a resource is a predicate that can link a subject to an object in a triple.
- Usage: Declare a property using
ex:hasAuthor a rdfs:Property . - Purpose: Defines the relationships or attributes that can be asserted about resources.
- Foundation: All RDF predicates (like
ex:worksFor,dc:creator) are, either explicitly or implicitly, instances ofrdfs:Property.
rdfs:domain & rdfs:range
These properties constrain the application of an RDF property. rdfs:domain specifies the class of the subject (where the property can be used), and rdfs:range specifies the class or datatype of the object (the expected value).
- Domain Example:
ex:hasAuthor rdfs:domain ex:Book .means the subject of anyex:hasAuthorstatement should be anex:Book. - Range Example:
ex:hasAuthor rdfs:range ex:Person .means the object of anyex:hasAuthorstatement should be anex:Person. - Inference: These declarations enable basic type inference. If
:Book1 ex:hasAuthor :Author1is stated, a reasoner can infer:Book1 a ex:Bookand:Author1 a ex:Person.
rdfs:subPropertyOf
The rdfs:subPropertyOf property establishes a hierarchy between RDF properties, indicating that all resources related by the sub-property are also related by the super-property.
- Usage:
ex:hasMother rdfs:subPropertyOf ex:hasParent . - Semantics: If property
Pis a subproperty ofQ, then any tripleX P Yimplies the tripleX Q Y. - Purpose: Allows for organizing properties into generalization/specialization hierarchies, similar to class hierarchies.
rdfs:Resource & rdfs:Literal
These are fundamental classes for typing all RDF terms. rdfs:Resource is the class of everything; all subjects and objects that are URIs or blank nodes are resources. rdfs:Literal is the class of literal values (strings, numbers, dates).
- rdfs:Resource: The most general class.
ex:anything a rdfs:Resourceis always true for any non-literal. - rdfs:Literal: The class of typed or untyped string values.
"42"^^xsd:integer a rdfs:Literal . - Significance: These classes form the basis of the RDF and RDFS type system, distinguishing between identifiable resources and data values.
How RDFS Works: Inference and Semantics
RDF Schema (RDFS) is a semantic extension of RDF that provides a basic vocabulary for defining taxonomies of classes and properties, enabling simple logical inference over an RDF graph.
RDF Schema (RDFS) is a semantic extension of the Resource Description Framework (RDF) that provides a basic vocabulary—including core terms like rdfs:Class, rdfs:subClassOf, and rdfs:subPropertyOf—for defining lightweight ontologies. It allows data architects to organize entities into class hierarchies and define property domains and ranges, adding a layer of machine-interpretable meaning to raw RDF triples. This formal structure enables automated inference, where new implicit facts can be derived from explicitly stated data based on the defined schema rules.
The primary mechanism of RDFS is taxonomic reasoning. For instance, if a resource is stated to be of type :Engineer and :Engineer is defined as a rdfs:subClassOf :Employee, a semantic reasoner can automatically infer that the resource is also an :Employee. Similarly, properties can be organized into hierarchies, and constraints like rdfs:domain and rdfs:range guide the valid application of predicates. This rule-based deduction transforms a simple graph of facts into a more complete knowledge base, forming the foundational semantics for more expressive languages like the Web Ontology Language (OWL).
RDFS vs. OWL: Capability Comparison
This table compares the core semantic modeling capabilities of RDF Schema (RDFS) and the Web Ontology Language (OWL), highlighting OWL's extensions for more expressive and logically rigorous knowledge representation.
| Semantic Modeling Feature | RDF Schema (RDFS) | Web Ontology Language (OWL) |
|---|---|---|
Primary Standardization Body | World Wide Web Consortium (W3C) | World Wide Web Consortium (W3C) |
Core Purpose | Define basic taxonomies and hierarchies for RDF data | Define rich, complex ontologies with formal logic |
Class & Property Hierarchies | ||
Domain & Range Restrictions | ||
Logical Property Characteristics | ||
Cardinality Restrictions | ||
Class Construction (Union, Intersection) | ||
Property Transitivity, Symmetry, Inverses | ||
Global Domain/Range (Closed-World) | ||
Local Range Restrictions (Open-World) | ||
Data Type Support for Literals | Basic (XSD types) | Extended (custom facets) |
Equivalence Axioms (SameAs, EquivalentClass) | ||
Disjointness Axioms | ||
Inference Complexity | PTIME (tractable) | NEXPTIME (can be intractable) |
Common Use Case | Simple categorization, basic data integration | Complex domain modeling, automated reasoning |
Primary Use Cases for RDFS
RDF Schema (RDFS) provides a foundational vocabulary for defining basic taxonomies and hierarchies within RDF data. Its primary use cases center on establishing a lightweight semantic structure for organizing entities and their relationships.
Defining Class Hierarchies
RDFS provides the core vocabulary for creating taxonomies of resources. The rdfs:Class construct defines a category of things, while rdfs:subClassOf establishes an inheritance relationship, allowing you to create a hierarchy (e.g., Dog is a subclass of Mammal, which is a subclass of Animal). This enables type-based reasoning, where properties defined for a superclass can be inferred to apply to all its subclasses.
Organizing Properties with Domains & Ranges
RDFS allows you to define and categorize properties (predicates). The rdf:Property class is used to declare a property. Crucially, rdfs:domain specifies the class of the subject (the resource that has the property), and rdfs:range specifies the class or datatype of the object (the property's value). For example, a property hasAuthor could have a domain of Book and a range of Person. This enables basic constraint checking and logical inference about resource types.
Enabling Basic Semantic Inference
A key function of RDFS is to provide a formal basis for entailment—deriving new triples that are logically implied by existing data. A triplestore with an RDFS reasoner can automatically infer facts such as:
- If
Dog rdfs:subClassOf MammalandFido rdf:type Dog, then inferFido rdf:type Mammal. - If
hasAuthor rdfs:domain BookandMyNovel hasAuthor JaneDoe, then inferMyNovel rdf:type Book. This moves the data model from a simple collection of statements to a system with implicit knowledge.
Providing Human-Readable Documentation
RDFS includes terms for adding documentation directly to the schema. The rdfs:label and rdfs:comment properties attach human-readable names and descriptions to classes and properties. This is critical for schema discoverability and data governance, as it allows users and tools to understand the intended meaning of ex:hasISBN or ex:Product without external documentation.
Linking and Reusing Vocabularies
RDFS is designed for the open web. It uses URIs to identify every class and property, enabling vocabulary reuse across different datasets. You can define that your ex:Person class is equivalent to (owl:sameAs) or a subclass of a well-known class from another vocabulary like FOAF (Friend of a Friend). This interlinking is the foundation for the Linked Data vision, allowing disparate datasets to be connected semantically.
Foundation for Richer Ontologies (OWL)
RDFS is the essential stepping stone to more expressive ontology languages like the Web Ontology Language (OWL). OWL builds directly upon RDFS constructs, using rdfs:Class and rdf:Property. Understanding RDFS is prerequisite for defining complex equivalences, property characteristics (like symmetry or transitivity), and cardinality restrictions in OWL. It provides the basic semantic 'scaffolding' upon which sophisticated logical models are built.
Frequently Asked Questions
RDF Schema (RDFS) is a semantic extension of the Resource Description Framework (RDF) that provides a basic vocabulary for defining taxonomies of classes and properties. These FAQs address its core mechanics, differentiation from other standards, and practical applications in enterprise knowledge graphs.
RDF Schema (RDFS) is a semantic extension of the Resource Description Framework (RDF) that provides a basic vocabulary for defining taxonomies of classes and properties to structure an RDF graph. It works by introducing a set of RDFS-specific terms (with the prefix rdfs:) that allow you to declare that certain resources are rdfs:Classes, that one class is a rdfs:subClassOf another, and that a property (rdf:Property) has a rdfs:domain (the class of its subject) and a rdfs:range (the class of its object).
For example, you can state:
turtleex:Person a rdfs:Class . ex:Employee rdfs:subClassOf ex:Person . ex:worksFor a rdf:Property ; rdfs:domain ex:Employee ; rdfs:range ex:Company .
This creates a simple hierarchy and defines constraints. A key mechanism is RDFS entailment, where a semantic reasoner can automatically infer new facts. If data states ex:Alice a ex:Employee, the reasoner can infer ex:Alice a ex:Person due to the rdfs:subClassOf relationship, enriching the graph without explicit data entry.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
RDF Schema (RDFS) is a core component of the semantic web stack. These related terms define the languages, standards, and systems that work with RDFS to create, query, and validate structured knowledge.
RDF (Resource Description Framework)
RDF is the foundational data model for the semantic web, upon which RDFS is built. It represents information as a set of subject-predicate-object triples, forming a directed, labeled graph. RDF provides the basic syntax and structure, while RDFS adds semantic meaning by defining vocabularies for classes and properties.
- Triple: The atomic data unit (e.g.,
<ex:Person> <ex:hasName> "Alice">). - URI: A Uniform Resource Identifier used to uniquely identify resources globally.
- Literal: A concrete data value like a string, number, or date.
OWL (Web Ontology Language)
OWL is a more expressive ontology language that extends RDFS. While RDFS defines basic taxonomies (class hierarchies and property domains/ranges), OWL adds sophisticated logical constraints for building rich, complex knowledge models.
- Key Differences from RDFS: OWL supports property characteristics (e.g., symmetry, transitivity), class expressions (unions, intersections), cardinality restrictions, and disjointness.
- Use Case: Modeling precise domain knowledge where logical inference is required, such as in biomedical or financial ontologies.
SPARQL
SPARQL is the standard query language for RDF data, analogous to SQL for relational databases. It is used to retrieve and manipulate data stored in RDF triplestores, including data structured using RDFS vocabularies.
- Query Types:
SELECT(retrieve results),CONSTRUCT(create new RDF graphs),ASK(boolean yes/no),DESCRIBE(get an RDF description of a resource). - Pattern Matching: Queries use graph patterns to match triples, leveraging RDFS-defined classes and properties.
- Protocol: SPARQL also defines a protocol for remote query execution over HTTP.
SHACL (Shapes Constraint Language)
SHACL is a W3C standard for validating RDF graphs against a set of conditions. While RDFS defines a schema for inference, SHACL defines a schema for data quality validation.
- Core Concept: Shapes define constraints that target nodes must satisfy (e.g., datatype, cardinality, value ranges).
- Complement to RDFS: SHACL validates that instance data conforms to expectations, whereas RDFS infers new facts from existing data.
- Enterprise Use: Essential for ensuring the integrity and consistency of knowledge graphs in production.
Triplestore
A triplestore is a specialized database designed for the efficient storage and retrieval of RDF triples. It is the native persistence layer for RDF and RDFS data.
- Native Storage: Optimized for graph-shaped data and SPARQL query execution.
- Features: Typically support named graphs for data organization, ACID transactions, and RDFS/OWL reasoning engines.
- Examples: Apache Jena Fuseki, Stardog, GraphDB, and Amazon Neptune (with RDF support).
Semantic Reasoner
A semantic reasoner (or inference engine) is software that applies logical rules to derive new, implicit facts from explicitly stated RDF data using RDFS and OWL ontologies.
- Materialization: The reasoner can pre-compute all inferred triples and store them in the triplestore.
- On-the-Fly Inference: Alternatively, it can compute inferences dynamically at query time.
- Key Inferences: Automatically deducing that an instance of a subclass is also an instance of its superclass (
rdfs:subClassOf), or inferring the type of a resource based on the property used (rdfs:domain).

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us