Graph
Triple

🔗Triple

NEW

An RDF data statement composed of a subject, predicate, and object expressing a single fact.

DESCRIPTION

A triple is the atomic data structure of the RDF model, representing facts as subject–predicate–object statements. Subjects identify resources, predicates denote properties, and objects supply values or other resources. Triples form labeled directed graphs and enable semantic queries using SPARQL. Triples can be serialized in formats such as Turtle and RDF/XML. For contextual metadata (e.g., provenance), quads extend triples with a graph name. Triple stores persist and index triples for efficient retrieval.

ALTERNATIVE DEFINITIONS

W3C

An RDF triple contains three components: subject, predicate, object.

Defines the minimal structure precisely within the RDF 1.1 specification.

Source

Wikipedia

An RDF triple is a statement in the Resource Description Framework (RDF) data model, and consists of a subject, a predicate, and an object.

Introduces triples as statements within RDF emphasizing their three-part structure.

Source

Apache Jena

A statement is a triple: subject, predicate, object.

Maps triple structure directly to the Jena programming API’s statement abstraction.

Source

RDF Subject Predicate Object SPARQL Triple Store Quad Turtle Graph Reification

COMPETING TERMS

Property Graph

KNOWLEDGE AREAS

Semantic & Knowledge Modeling Data Modeling Data Integration & Interoperability

TARGET AUDIENCE

Data Modeler Data Architect AI Engineer Data Engineer

EXTERNAL SOURCES

  • Wikipedia - RDF triple
  • W3C - RDF 1.1 concepts including triples
  • Apache Jena - RDF API and triple manipulation docs
  • RDFLib - Python library documentation for RDF triples
  • W3C - SPARQL 1.1 query over RDF triples

TOP QUESTIONS

What does a Triple represent in RDF?

A triple encodes a single fact as subject–predicate–object, forming the building blocks of an RDF graph.

Category: Overview

How are Triples stored at scale?

Triple stores index subjects, predicates, and objects for fast graph queries, often with specialized storage and compression.

Category: Operations

What is the difference between a Triple and a Quad?

A quad adds a fourth component—a graph name or context—enabling provenance and named graphs.

Category: Misunderstanding

How do Triples enable querying with SPARQL?

SPARQL matches triple patterns against the graph, combining bindings to answer complex semantic queries.

Category: Usage

What are common serialization formats for Triples?

Turtle, N-Triples, RDF/XML, and JSON-LD serialize triples for exchange and storage.

Category: Requirements

How do blank nodes relate to Triples?

Blank nodes can serve as anonymous subjects or objects in triples, representing unnamed resources.

Category: Example

What is a common mistake with Triples?

Using inconsistent IRIs or vocabularies breaks interoperability; adopt standard ontologies and namespaces.

Category: Mistakes

How do Triples relate to Property Graphs?

Triples represent edge-labeled facts; property graphs attach key–value properties to nodes and edges, offering a different model.

Category: Comparison

What is triple reification used for?

Reification represents statements about statements, such as provenance or certainty, albeit with overhead.

Category: Usage