A semantic triple, or RDF triple or simply triple, is the atomic data entity in the
Resource Description Framework The Resource Description Framework (RDF) is a World Wide Web Consortium (W3C) standard originally designed as a data model for metadata. It has come to be used as a general method for description and exchange of graph data. RDF provides a variety of ...
(RDF) data model. As its name indicates, a triple is a
set of three entities that codifies a
statement about
semantic data in the form of subject–predicate–object expressions (e.g., "Bob is 35", or "Bob knows John").
Subject, predicate and object
This format enables
knowledge to be represented in a machine-readable way. Particularly, every part of an RDF triple is individually addressable via unique
URIs — for example, the statement "Bob knows John" might be represented in RDF as:
http://example.name#BobSmith12 http://xmlns.com/foaf/0.1/knows http://example.name#JohnDoe34
.
Given this precise representation, semantic data can be unambiguously
queried and
reasoned
Reason is the capacity of consciously applying logic by drawing conclusions from new or existing information, with the aim of seeking the truth. It is closely associated with such characteristically human activities as philosophy, science, langu ...
about.

The components of a triple, such as the statement "The sky has the color blue", consist of a
subject
Subject ( la, subiectus "lying beneath") may refer to:
Philosophy
*''Hypokeimenon'', or ''subiectum'', in metaphysics, the "internal", non-objective being of a thing
**Subject (philosophy), a being that has subjective experiences, subjective cons ...
("the sky"), a
predicate
Predicate or predication may refer to:
* Predicate (grammar), in linguistics
* Predication (philosophy)
* several closely related uses in mathematics and formal logic:
**Predicate (mathematical logic)
**Propositional function
**Finitary relation, ...
("has the color"), and an
object ("blue"). This is similar to the classical notation of an
entity–attribute–value model
Entity–attribute–value model (EAV) is a data model to encode, in a space-efficient manner, entities where the number of attributes (properties, parameters) that can be used to describe them is potentially vast, but the number that will actual ...
within
object-oriented design
Object-oriented design (OOD) is the process of planning a system of interacting objects for the purpose of solving a software problem. It is one approach to software design.
Overview
An object contains encapsulated data and procedures grouped ...
, where this example would be expressed as an entity (sky), an attribute (color) and a value (blue).
From this basic structure, triples can be composed into
more complex models, by using triples as objects or subjects of other triples — for example,
Mike → said → (triples → can be → objects)
.
Given their particular, consistent structure, a collection of triples is often stored in purpose-built databases called
Triplestores.
Difference to relational databases
A
relational database
A relational database is a (most commonly digital) database based on the relational model of data, as proposed by E. F. Codd in 1970. A system used to maintain relational databases is a relational database management system (RDBMS). Many relatio ...
is the classical form for information storage. It's working with different tables which consist of rows. The well known
SQL-language is able to retrieve information from a database. In contrast, the RDF triple storage is working with logical predicates. No tables nor rows are needed but the information is stored in a text file. A RDF-triple storage can be converted into a SQL database and the other way around. If the knowledge is highly
unstructured and dedicated tables aren't flexible enough, semantic triples are used over classical SQL storage.
In contrast to a traditional SQL database, the RDF triple storage isn't created with table editors but the preferred tool is a
knowledge editor
Knowledge can be defined as awareness of facts or as practical skills, and may also refer to familiarity with objects or situations. Knowledge of facts, also called propositional knowledge, is often defined as true belief that is distinct ...
, for example Protégé.
Protégé
Mentorship is the influence, guidance, or direction given by a mentor. A mentor is someone who teaches or gives help and advice to a less experienced and often younger person. In an organizational setting, a mentor influences the personal and p ...
looks similar to an object-oriented modeling application used for
software engineering
Software engineering is a systematic engineering approach to software development.
A software engineer is a person who applies the principles of software engineering to design, develop, maintain, test, and evaluate computer software. The term ' ...
, but it's focused on natural language information. The RDF triples are aggregated into a
knowledge base
A knowledge base (KB) is a technology used to store complex structured and unstructured information used by a computer system. The initial use of the term was in connection with expert systems, which were the first knowledge-based systems. ...
which allows external parser to run requests. Possible applications are located within video games for the creation of non-player characters.
Limitations
One concern about triple storage is its lack of
database scalability Database scalability is the ability of a database to handle changing demands by adding/removing resources. Databases use a host of techniques to cope.
History
The initial history of database scalability was to provide service on ever smaller comp ...
. This problem is especially pertinent if millions of triples are stored and retrieved in a database. The seek time is larger than for classical
SQL-based databases.
A more complex issue is a knowledge model's inability to predict future states. Even if all the domain knowledge is available as
logical predicates, the model fails in answering
what-if questions. For example, suppose in the RDF format a room with a robot and table is described. The robot knows what the location of the table is, is aware of the distance to the table and knows also that a table is a type of furniture. Before the robot can plan its next action, it needs
temporal reasoning capabilities.
Thus, the knowledge model should answer hypothetical questions in advance before an action is taken.
See also
*
Named graphs and quads, an extension to semantic triples to also include a context node as a fourth element.
References
External links
*
{{Semantic Web
Semantic Web
Data modeling
Resource Description Framework
Knowledge representation