terms of this abstract syntax. Concrete RDF syntax is introduced
later in .
-
In the next three subsections we discuss the three types of RDF data
- that occur in triples: IRIs, literals and blank nodes.
+
In the next four subsections, we discuss the four types of RDF data
+ that occur in triples: IRIs, literals, blank nodes, and triple terms.
@@ -351,6 +352,70 @@
Blank nodes
+
+
Triple terms
+
+
As the basic unit of description in RDF, a triple states a simple,
+ directed relationship between two resources. Sometimes, we need to describe
+ more detailed circumstances underlying such relationships. Conceptually, we
+ can annotate a statement with something more detailed:
+
+
+
+
In conjunction with the arc expressing the relationship, the dashed circle
+ in the figure expresses a reifier. This is Bob's interest,
+ with a type and a date of origin, as a concrete circumstance of the fact
+ that Bob is interested in the Mona Lisa.
+
+
Formally, this annotation is composed of four triples:
The second triple is called a reifying triple, and
+ expresses a concretization of the proposition stated by the first triple.
+ The object of a reifying triple is a triple term. It denotes the
+ proposition itself, as a logical, abstract object identified through its
+ constituent subject, predicate, and object components.
+
+
Triple terms may only appear in the object position,
+ and should be used with the special reifies predicate of reifying
+ triples.
+
+
+
+
+
Multiple graphs
@@ -417,13 +482,13 @@
Multiple graphs
in the intended way. Possible semantics of datasets are described in a separate note
[[RDF11-DATASETS]].
-
@@ -655,7 +720,7 @@
N-Triples
The figure below shows the triples resulting from the example:
-
+ RDF graph resulting from the N-Triples example
@@ -679,7 +744,7 @@
Turtle
support for namespace prefixes, lists and shorthands for datatyped
literals. Turtle provides a trade-off between ease of
writing, ease of parsing and readability. The graph shown in
- Fig. 4 can be
+ Fig. 5 can be
represented in Turtle as follows:
@@ -768,10 +833,42 @@
Representation of blank nodes
the square brackets are interpreted as triples with the blank node as
subject. Lines starting with '#' represent
comments.
+
+
+
+
Representations of reifying triples
+
+
Turtle provides concise notation for reifying and annotating
+ triples. This allows us to encode the example in the section about triple terms, where the simple fact
+ that Bob is interested in the Mona Lisa was annotated with a more
+ specific circumstance.
+
+
We can use an unnamed annotation to state when the interest itself
+ began:
+
+
+
+
We can also describe that Alice has once made the simple claim. Here
+ we use syntax for a reifying triple, which references it without
+ implying its truth:
+
+
-
For more details about the syntax of Turtle please consult the Turtle specification [[RDF12-TURTLE]].
+
The previous two descriptions can also be combined, as two
+ annotations on one statement. Here we also identify the reifiers with
+ IRIs:
+
+
+
For more details about the syntax of Turtle please consult the Turtle specification [[RDF12-TURTLE]].
@@ -837,7 +934,7 @@
TriG
The figure below shows the triples resulting from this example.
-
+ Triples resulting from the TriG example
@@ -865,7 +962,7 @@
N-Quads
The nine lines in the N-Quads example correspond to the nine
- arcs in Fig. 5. Lines 1-7 represent quads, where the first
+ arcs in Fig. 6. Lines 1-7 represent quads, where the first
element constitutes the graph IRI. The part of the quad after the
graph IRI specifies the
subject, predicate and object of the statement, following the syntactic
@@ -893,7 +990,7 @@