Semantics: Behaviour catalogue - w3c/rdf-star-wg GitHub Wiki
graph ::= *(triple)
triple ::= no-literal-term iri term
no-literal-term ::= iri | bnode | quoted-triple-term
term ::= no-literal-term | literal
quoted-triple-term ::= CG-qtt | CG-TEP-qtt | ASS-qtt | ...
xxx-qtt ::= no-literal-term iri term
Terms are denoted by r, triples by t, and graphs by g.
Given a triple or quoted triple term a, we denote the subject, predicate, and object of a as a.s, a.p, and a.o, respectively.
An RDF-star interpretation I is a structure:
-
< < IR, IP, IS0, IL0, IEXT0 >, IT0,
< IR, IP, IS1, IL1, IEXT1 >, IT1, ... >
such that:
-
< IR, IP, ISi, ILi, IEXTi >is a RDF 1.1 simple interpretation. -
ITiis a mapping fromIRxIPxIRtoIR,
such that:∀ <x,y,z> ∈ dom(ITi). <x,z> ∈ IEXTi(y).
-
Aiare mappings from blank nodes toIR.
Given I, [Ii+Aj] is a function defined over RDF-star terms and RDF-star triples as follows.
-
[Ii+Aj](r) = ILi(r)ifris a literal
-
[Ii+Ai](r) = ISi(r)ifris a IRI
-
[Ii+Aj](r) = Aj(r)ifris a blank node
-
[Ii+A0](r) = IT1(<[I0+A0](r.s),[I0+A0](r.p),[I0+A0](r.o)>)ifris a CG (Community Group) quoted triple term
-
[Ii+A0](r) = IT2(<[I2+A0](r.s),[I2+A0](r.p),[I2+A0](r.o)>)ifris a CG-TEP (Community Group with TEP) quoted triple term
-
[I0+A0](r) = IT0(<[I0+A0](r.s),[I0+A0](r.p),[I0+A0](r.o)>)ifris an ASS (Asserted) quoted triple term
-
[Ii+Aj](r) = ...ifris a xxx quoted triple term
-
[I0+A0](t) = TRUEif and only if<[I0+A0](t.s),[I0+A0](t.o)> ∈ IEXT0(IS0(t.p))
-
[I0+A0](g) = TRUEif and only if∀ t ∈ g . [I0+A0](t) = TRUE
An interpretation I is called a model for g if there exists A0 such that [I0+A0](g) = TRUE.
Simple entailment: g ⊨ g' if and only if models(g) ⊆ models(g').
( A review of the standard semantics of RDF 1.0: semantics of RDF.pdf ).
- transparent: same
IEXT - locally opaque: one
IEXTifor each setiof quoted triples - opaque — one
IEXTifor all quoted triples
- transparent: same
IS - locally opaque: one
ISifor each setiof quoted triples - opaque — one
ISifor all quoted triples
- transparent: same
A - locally opaque: one
Aifor each setiof quoted triples - opaque — one
Aifor all quoted triples
- transparent: same
IL - locally opaque: one
ILifor each setiof quoted triples - opaque — one
ILifor all quoted triples
-
CG (Community Group) quoted triple terms have opaque IRIs and Literals, transparent BNodes, and opaque properties::
<< dbr:Linköping dbo:populationTotal "104232"^^xsd::nonNegativeInteger >> :type rdf-star:triple ; :source <https://dbpedia.org/data/Linköping.ttl> . -
CG-TEP (Community Group with TEP) quoted triple terms have transparent IRIs, Literals, and BNodes, and opaque properties:
rdf:type rdf:type rdf-star:TransparencyEnablingProperty . :measuredOn rdf:type rdf-star:TransparencyEnablingProperty . << dbr:Linköping dbo:populationTotal "104232"^^xsd::nonNegativeInteger >> :type rdf-star:statement ; :measuredOn "2010-12-31"^^xsd:date . -
ASS (Asserted) quoted triple terms have transparent IRIs, BNodes, and Literals, and transparent properties - this captures the representation of events and of n-ary relations:
<<< :john :teaches :cs101 >>> rdf:type rdf-star:event ; rdf:type :teaching ; dct:Location dbr:Stanford_University .