-
Notifications
You must be signed in to change notification settings - Fork 8
Semantics: Andy's proposal
graph ::= (triple)*
triple ::= subject predicate object
subject ::= iri | BlankNode | tripleOccurrence
predicate ::= iri
object ::= term
term ::= iri | BlankNode | literal | tripleOccurrence
tripleOccurrence ::= (iri | BlankNode) tripleTerm
tripleTerm ::= triple
Note:
Terms are denoted by r
, triples by t
, and graphs by g
.
Given a triple occurrence r
, we denote the identifier of r
as r.id
, and the subject, predicate, object of r
as r.s
, r.p
, r.o
, respectively.
Given a triple t
, we denote the subject, predicate, object of t
as t.s
, t.p
, t.o
, respectively.
RDF 1.1 syntax is the above without the tripleOccurrence
and tripleTerm
categories.
An RDF-star simple interpretation I
is a structure <IR
, IP
, IS
, IL
, IEXT
, IT
, IO
> 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
into2IR x IR
, called the extension of properties. - A binary relation
IO
overIR x (IR x IP x IR)
, called the occurrence 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 as follows.
-
[I+A](r) = IL(r)
ifr
is a literal
-
[I+A](r) = IS(r)
ifr
is a iri
-
[I+A](r) = A(r)
ifr
is a BlankNode
-
[I+A](r) = [I+A](r.id)
ifr
is a tripleOccurrence
-
[I+A](t) = TRUE
if and only if<[I+A](t.s),[I+A](t.o)> ∈ IEXT([I+A](t.p))
and-
<[I+A](ts.id), <[I+A](ts.s),[I+A](ts.p),[I+A](ts.o)>> ∈ IO
ift.s
is a tripleOccurrencets
-
<[I+A](to.id), <[I+A](to.s),[I+A](to.p),[I+A](to.o)>> ∈ IO
ift.o
is a tripleOccurrenceto
-
-
[I+A](g) = TRUE
if and only if∀ t ∈ g . [I+A](t) = TRUE
An interpretation I
is called a model for g
if there exists A
such that [I+A](g) = TRUE
.
Simple entailment: g ⊨ g'
if and only if models(g) ⊆ models(g')
.
Note:
RDF 1.1 semantics is the above without the IO
binary relation in the interpretation.
A review of the standard semantics of RDF 1.0: semantics of RDF.pdf.
<< :wed-1 | :liz :spouse :richard >>
:start 1964 ;
:end 1974 .
<< :wed-2 | :liz :spouse :richard >>
:start 1975 ;
:end 1976 .
The above entails:
<< [] | :liz :spouse _:x >>
:start 1964 .
- Triple term shortcut:
<< :s :p :o >>
➡️
<< [] | :s :p :o >>
- Annotation shortcut:
:s :p :o {| :id | :p1 o1; :p2 o2 |} .
➡️
<< :id | :s :p :o >> :p1 o1; :p2 o2 .
:s :p :o .
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