...
Specification for Activity Stream 2.0
See working document Activity Streams - Example Change Documents for Authoritative Data.
Compatible with JSON-LD, but has its own media-type.
...
Many of the changes we will make are covered by the activity types in the spec. May need to add custom types for some (e.g. label change).
If done on a triple by triple basis, this might look like...
Add Example:
Code Block | ||
---|---|---|
| ||
{
"@context": "https://www.w3.org/ns/activitystreams",
"summary": "Add term milk",
"type": "Add",
"actor": {
"type": "Authority",
"id": "http://my.authority",
"name": "My Authority"
},
"graph": "<http://my_repo/uri/of/new/entity> <http://my.authority/vocab/term> "milk"@en."
} |
Code Block | ||
---|---|---|
| ||
{
"@context": "https://www.w3.org/ns/activitystreams",
"summary": "Add term milk",
"type": "Add",
"actor": {
"type": "Authority",
"id": "http://my.authority",
"name": "My Authority"
},
"graph": "<http://my_repo/uri/of/new/entity> <http://my.authority/vocab/term> b1:.
<b1:> <http://my.authority/vocab/hasLabel> "milk"@en."
} |
Delete Example:
Code Block | ||
---|---|---|
| ||
{
"@context": "https://www.w3.org/ns/activitystreams",
"summary": "Delete term milk",
"type": "Delete",
"actor": {
"type": "Authority",
"id": "http://my.authority",
"name": "My Authority"
},
"graph": "<http://my_repo/uri/of/new/entity> <http://my.authority/vocab/term> "milk"@en"
} |
...
title | Delete a triple with blank node |
---|
...
.
...
title | Change Existing Triple |
---|
...
RDF Diff
- Provides info on several tools that (for the most part) compare 2 graphs and report on differences (https://www.w3.org/2001/sw/wiki/How_to_diff_RDF)
...