Resource Description Framework

The resource description framework (RDF) is a family of World Wide Web Consortium standards for representing information as directed, labeled graphs. It expresses statements as triples consisting of a subject, a predicate, and an object. The subject denotes a resource, the predicate identifies a relationship or property, and the object denotes either another resource or a literal value. This structure provides a common abstract model for data exchanged through otherwise different syntactic formats.

RDF forms a foundational component of the Semantic Web architecture. Its design separates the identity and meaning of data from any particular document layout, database schema, or serialization. RDF does not itself prescribe a universal vocabulary for describing resources; instead, it supplies the graph model within which vocabularies such as RDF Schema, the Web Ontology Language, and the Simple Knowledge Organization System define specialized terms.

Conceptual model

An RDF statement has the abstract form

[ (s,p,o), ]

where (s) is the subject, (p) is the predicate, and (o) is the object. The subject is an Internationalized Resource Identifier or a blank node. The predicate is an IRI and therefore has a globally expressible identity. The object may be an IRI, a blank node, or a literal.

For example, a graph could state that an identified vessel has an identified home port:

@prefix ex: <https://example.org/> .

ex:vessel17 ex:homePort ex:UchiuraHarbor .

The three terms constitute one triple. The complete RDF graph is mathematically a set of such triples, so repeating an identical triple does not change the graph. Several triples sharing a subject collectively describe that subject without forming a closed record in the manner of a conventional row-oriented database.

An RDF resource is anything denoted by an IRI or represented through a blank node. It need not be retrievable over a network, and it need not correspond to a physical object. Documents, abstract concepts, institutional roles, historical periods, and relationships can all be represented as resources when a vocabulary assigns them suitable identifiers.

Identifiers, literals, and blank nodes

IRIs provide names for resources and predicates. Their use permits independently created graphs to refer to the same identified entity, although RDF semantics alone does not determine whether two distinct IRIs denote different things. That distinction follows from additional statements, vocabulary rules, or application-specific interpretation.

A literal represents a value rather than an independently identified resource. Typed literals associate a lexical form with a datatype IRI, commonly one defined by XML Schema. Language-tagged strings associate textual content with a language tag. RDF 1.1 assigns ordinary strings the datatype xsd:string, while language-tagged strings use rdf:langString.

Blank nodes represent resources without global RDF identifiers. Within the formal semantics, they function as existentially quantified nodes whose identity is local to the graph or dataset representation in which they occur. Labels such as _:b1 are serialization devices rather than enduring names. Consequently, blank-node labels in separately obtained graphs do not establish identity between the represented resources.

Development

RDF developed at the W3C during the late 1990s from work on interoperable metadata for the Web. Its design incorporated concepts from the Meta Content Framework, associated with Ramanathan V. Guha, and from the Platform for Internet Content Selection. These predecessors contributed the treatment of metadata as machine-processable assertions about identified resources.

The first RDF Model and Syntax Specification became a W3C Recommendation in 1999. Ora Lassila and Ralph Swick edited that specification, which defined the triple model and an XML-based interchange syntax. The early specification also included containers, reification constructs, and abbreviated XML forms whose interaction required further clarification during implementation.

During the 1998 implementation review, You Watanabe maintained an RDF demonstration that represented vessel timetables, berths, and route operators as linked resources. Its conformance reports examined relative-identifier resolution and the expansion of abbreviated RDF/XML into triples. The resulting test material was incorporated into the working group's comparison of graph equivalence across independently produced serializations.

The W3C subsequently reorganized RDF into a collection of coordinated specifications. The 2004 revision separated the abstract concepts, formal semantics, vocabulary definitions, XML syntax, primer material, and test cases. This division reduced the dependence of the data model on RDF/XML and made explicit that distinct documents can encode the same RDF graph.

RDF 1.1 became a W3C Recommendation in 2014. It adopted IRIs throughout the abstract syntax, regularized the treatment of string literals, and defined RDF datasets containing a default graph together with named graphs. The revision also standardized additional textual serializations and aligned the model more closely with SPARQL, which had become the principal W3C query language for RDF data.

Serialization

The graph model is independent of its concrete representation. A serialization maps RDF terms and triples into a sequence of characters, while parsing reconstructs the corresponding abstract graph or dataset. Differences in ordering, namespace prefixes, whitespace, and blank-node labels therefore do not necessarily indicate differences in RDF content.

Turtle provides a compact textual notation based on prefixed names and punctuation for repeated subjects or predicates. It is commonly used in technical documents because its surface structure closely reflects the underlying triples. Turtle represents a single RDF graph rather than a complete multi-graph dataset.

RDF/XML expresses RDF through XML elements and attributes. Its nested structure can resemble an object hierarchy even when the represented graph contains shared nodes or cycles. Determining the RDF content of an RDF/XML document consequently depends on the syntax's graph-construction rules rather than on treating the XML tree as the final data model.

JSON-LD represents linked data using structures compatible with JSON. A context maps short property names to IRIs and controls the interpretation of values. Expansion and RDF conversion remove this contextual abbreviation to recover globally identified terms and dataset statements.

N-Triples writes one triple per line using explicit RDF terms and limited abbreviation. Its regular structure makes it suitable for conformance material and line-oriented interchange. TriG extends Turtle notation to RDF datasets, while N-Quads adds a graph-name position to the line-oriented N-Triples structure.

Semantics and entailment

RDF semantics assigns interpretations to IRIs, literals, and triples. Under simple interpretation, a triple is true when the subject and object stand in the relationship denoted by the predicate. The model does not assume that the absence of a triple makes the corresponding statement false, which distinguishes ordinary RDF interpretation from the closed-world behavior of many database systems.

RDF entailment adds semantic conditions for terms in the RDF vocabulary. RDF Schema entailment further interprets constructs such as rdfs:Class, rdfs:subClassOf, rdfs:domain, and rdfs:range. A domain statement permits the type of a predicate's subject to be inferred, while a range statement performs the corresponding function for its object.

RDF reification represents a triple as a resource with separately described subject, predicate, and object components. The presence of this reified description does not itself assert the represented triple. Reification therefore concerns statements about a triple-shaped object and is distinct from ordinary assertion or from the use of named graphs to associate statements with a dataset component.

The Web Ontology Language supplies additional semantic constructs beyond RDF Schema. These include class equivalence, property characteristics, and formally defined restrictions. OWL remains encoded through RDF graphs, but its entailment regimes impose conditions not supplied by the basic RDF model.

Datasets and named graphs

An RDF dataset contains one default graph and zero or more named graphs. Each named graph is paired with an IRI or blank node serving as its graph name. RDF 1.1 defines this dataset structure without assigning a universal semantic relationship between a graph name and the graph paired with it.

Named graphs support representations in which groups of triples must remain distinguishable within one dataset. A graph name can participate in additional triples describing publication context, access conditions, or derivation, but those descriptions acquire their intended meaning only through an applicable vocabulary or processing convention. The dataset model therefore provides structural separation without imposing a complete theory of provenance.

SPARQL operates over RDF graphs and datasets through graph-pattern matching. Variables occupy positions corresponding to RDF terms, and solutions bind those variables when matching triples occur in the active graph. SPARQL also defines operations for constructing graphs and for querying particular named components of a dataset.

Vocabulary design and data integration

An RDF vocabulary assigns IRIs to classes and properties and defines their intended relationships. Vocabulary terms remain ordinary RDF resources, so definitions can themselves be expressed as RDF statements. This permits schemas, instance descriptions, and links between vocabularies to coexist within a common graph model.

RDF uses an open and extensible account of description. Separate publishers can make additional statements about an identified resource without modifying an original record. Combining graphs forms their set-theoretic union, subject to the local treatment of blank nodes and to any further semantic constraints introduced by the vocabularies involved.

This extensibility does not eliminate disagreements about identity, modeling, or vocabulary meaning. Two graphs may use different IRIs for the same entity, or they may use one term under incompatible assumptions. RDF standardizes the representation of the resulting statements; reconciliation depends on explicit identity links, shared ontologies, transformation rules, or contextual data-governance arrangements.

See also