With JSON-LD, every piece of data
can link to any other piece of data.
{
"@context": "https://www.w3.org/ns/activitystreams",
"id": "#ruben-likes-ugent",
"type": "Like",
"actor": "https://ruben.verborgh.org/profile/#me",
"object": "https://www.ugent.be/#this",
"published": "2019-04-25T08:00:00Z"
}
Data shapes and their semantics
enable layered compatibility.
{
"@context": "https://www.w3.org/ns/activitystreams",
"id": "#ruben-likes-ugent",
"type": "Like",
"actor": "https://ruben.verborgh.org/profile/#me",
"object": "https://www.ugent.be/#this",
"published": "2019-04-25T08:00:00Z"
}
Different source data
can be concatenated.
{
"@context": "https://www.w3.org/ns/activitystreams",
"@graph": [{
"type": "Like",
"actor": "https://ruben.verborgh.org/profile/#me",
"object": "https://www.ugent.be/#this",
"published": "2019-04-25T08:00:00Z"
},{
"type": "Like",
"actor": "https://example.org/people/silvia#me",
"object": "https://www.ugent.be/#this",
"published": "2019-04-25T08:05:00Z"
}]
}
The best way to predict
the future is to invent it.
Alan Kay
The best way to invent
the future is to predict it.
John Perry Barlow