TPAC 2024
Anaheim CA, USA
Joint JSON-LD RDF-star session
24 SEPTEMBER 2024
@id
value for Quoted Triple.
{
"@context": {
"@base": "http://example.org/",
"@vocab": "http://example.org/"
},
"@id": {"@id": "bob", "age": 42},
"certainty": 0.8
}
PREFIX : <http://example.org/>
<< :bob :age 42 >> :certainty 0.8e0 .
@annotation
value for annotations.
{
"@context": {...},
"@id": "bob",
"age": {
"@value": 42,
"@annotation": {"certainty": 0.8}
}
}
:bob :age 42 .
<< :bob :age 42 >> :certainty 0.8e0 .
{
"@context": {
...
"claimedBy": {
"@reverse": "http://example.org/claims",
"@type": "@id"
}
},
"@id": {"@id": "bob", "knows": "alice"},
"claimedBy": "alice"
}
PREFIX : <http://example.org/>
:alice :claims << :bob :knows :alice >> .
{
"@context": {...},
"@id": "bob",
"knows": {
"@id": "alice",
"@annotation": {"accordingTo": "alice", "claimedBy": "bob"}
}
}
PREFIX : <http://example.org/>
:bob :knows :alice .
<< :bob :knows :alice >> :accordingTo :alice .
:bob :claims << :bob :knows :alice >> .
@triple
, @reifies
keywords.
@id
.@triple
, which should be rarely used in practice.@triple
describes a single triple, much like the structured value of @id
in the CG version.@annotation
is largely unchanged.@triple
is intended to encode a single triple with an @id and a single-valued property.
{
"@context": {...},
"rdf:reifies": {
"@triple": {"@id": "bob", "age": 42}
},
"certainty": 0.8
}
_:b0 rdf:reifies <<( :bob :age 42 ))> ;
:certainty: 0.8 .
@reifies
keyword can be used to compact this, and holds the potentially for reifying more than one triple:
{
"@context": { ... },
“@id”: “reifier”,
"@reifies": {"@id": "bob", "age": 42},
"certainty": 0.8
}
:reifier rdf:reifies <<( :bob :age 42 ))>;
:certainty: 0.8 .
{
"@context": { ... },
"@id": "bob",
"age": {
"@value": 42,
"@annotation": {
"@id": "_:anno",
"certainty": 0.8
}
}
}
:bob :age 42 ~ _:anno {| :certainty 8.0E-1 |} .
@graph
. If it were restated as follows, it would use the named graph syntax, which is common in Verifiable Claims.
{
"@context": { ... },
"@id": "reifier",
"@graph": {"@id": "bob", "age": 42},
"certainty": 0.8
}
:reifier :certainty 8.0E-1 .
:reifier {:bob :age 42 .}