-
Notifications
You must be signed in to change notification settings - Fork 8
RDF star "working baseline"
graph ::= triple*
triple ::= tripleStructure
tripleStructure ::= subject predicate object
subject ::= NoLiteralTerm
predicate ::= iri
object ::= term
NoLiteralAtomicTerm ::= iri | BlankNode
atomicTerm ::= NoLiteralAtomicTerm | literal
NoLiteralTerm ::= NoLiteralAtomicTerm | tripleTerm
term ::= NoLiteralTerm | literal
tripleTerm ::= tripleStructure
- RDF 1.1 syntax is the above without the tripleTerm category and its dependents.
- A term is denoted by
r
, a triple byt
, and a graph byg
. - Given a triple structure
s
, we denote the subject, predicate, object ofs
ass.s
,s.p
,s.o
, respectively.
An RDF simple interpretation I
is a structure <IR
, IP
, IS
, IL
, IEXT
, RE
> consisting of:
- A non-empty set
IR
of resources, called the domain or universe ofI
. - A set
IP
, called the set of properties ofI
. - A mapping
IS
from IRIs intoIR ⋃ IP
, called the interpretation of IRIs. - A partial mapping
IL
from literal intoIR
, called the interpretation of literals. - A mapping
IEXT
fromIP
into2
IR x IR
, called the extension of properties. - ⏩ An injective function
RE
fromIR x IP x IR
intoIR
, called the denotation of triple terms. ⏪
A
is a mapping from BlankNode to IR
.
Given I
and A
, the function [I+A](.)
is defined over terms, triples, and graphs, and the function [[I+A]](.)
is defined over terms, as follows.
-
[I+A](r) = IS(r)
ifr
is a iri -
[I+A](r) = IL(r)
ifr
is a literal - ⏩
[I+A](r) = RE([I+A](r.s), [I+A](r.p), [I+A](r.o))
ifr
is a tripleTerm ⏪️ -
[I+A](r) = A(r)
ifr
is a BlankNode
-
[I+A](t) = TRUE
if and only if<[I+A](t.s), [I+A](t.o)> ∈ IEXT([I+A](t.p))
-
[I+A](g) = TRUE
if and only if∀ t ∈ g . [I+A](t) = TRUE
A simple interpretation I
is a model of a graph g
if and only if ∃ A . [I+A](g) = TRUE
.
The set of all models of a graph g
is called models(g)
.
Simple entailment: g ⊨ g'
if and only if models(g) ⊆ models(g')
.
- RDF 1.1 simple semantics is the above without the parts within ⏩...⏪ marks.
graph ::= triple*
triple ::= tripleStructure
tripleStructure ::= ( subject predicate object ) |
( reifier rdf:reifies tripleTerm )
subject ::= noLiteralAtomicTerm
predicate ::= iri
object ::= atomicTerm
noLiteralAtomicTerm ::= iri | BlankNode
atomicTerm ::= noLiteralAtomicTerm | literal
noLiteralTerm ::= noLiteralAtomicTerm | tripleTerm
term ::= noLiteralTerm | literal
reifier ::= subject
tripleTerm ::= tripleStructure
- Observe that RDF 1.1 is always well formed.
RDF semantics is defined over the well formed fragment of RDF.
RDF semantics restricts interpretations as follows:
A RDF interpretation I
is a RDF model of a graph g
if and only if
-
∃ A . [I+A](g) = TRUE
and - all the RDF 1.1 metamodelling stuff and
- all the RDF 1.1 axiomatic triples stuff and
- ⏩ metamodelling characterising reification ⏪️ and
- ⏩ axiomatic triples characterising reification ⏪️
The set of all RDF models of a graph g
is called rdf-models(g)
.
RDF entailment: g ⊨ g'
if and only if rdf-models(g) ⊆ rdf-models(g')
.
- RDF 1.1 RDF semantics is the above without the parts within ⏩...⏪ marks.
A triple term is represented in Turtle as follows:
<<( s p o )>>
The following shortcut for a term (a triple term reifier) is added to Turtle, which can be used in arbitrary subject or object position:
<< e | s p o >>
which translates in Turtle as follows:
<< e | s p o >> p1 o1 . ==> e rdf:reifies <<( s p o )>> . e p1 o1 .
p1 o1 << e | s p o >> . ==> e rdf:reifies <<( s p o )>> . p1 o1 e .
- A Turtle graph with triple term reifiers and without triple terms is always well-formed, and a well-formed graph can always be expressed as a Turtle graph without triple terms but possibly with triple term reifiers.
Summary of the RDF-star WG wiki.
- Editor's guide
- Meeting minutes
- RDF terminology
- Scribes
- Use Cases collection
- RDF-star syntax and semantics:
- RDF-star "alternative baseline" (VOTED 2024.11.14 - frozen)
- RDF-star "liberal baseline" (current working version)
- RDF-star "minimal baseline" (VOTED 2024.07.18 - frozen - superseded by vote 2024.11.14 - deprecated)
- RDF-star "working baseline" (working version - deprecated)
- RDF‐star baseline examples
- RDF-star and LPGs
- Extending the baseline with "asserted" stuff
- systems and acronyms
- Task forces
- Text Direction considerations
- Text Direction Proposal
- Triple‐Edge-subgroup-proposals