...
Sidecar specification describing activity types (e.g. add, delete, etc.)
Add Example:
Code Block |
---|
language | none |
---|
title | Add a single triple |
---|
collapse | true |
---|
|
{
"@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/entity/milk> <http://my.authority/vocab/hasLabel> 'milk'@en."
} |
Code Block |
---|
language | none |
---|
title | Add an entity with multiple triples |
---|
collapse | true |
---|
|
{
"@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/entity/cow_milk> <http://my.authority/vocab/hasLabel> 'cow milk'@en.
<http://my_repo/entity/cow_milk> <http://my.authority/vocab/broader_term> <http://my_repo/entity/milk>.
<http://my_repo/entity/cow_milk> <http://my.authority/vocab/narrow_term> <http://my_repo/entity/bovine_milk>. } |
Code Block |
---|
language | none |
---|
title | Add an entity with a blank node |
---|
collapse | true |
---|
|
{
"@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/entity/milk> <http://my.authority/vocab/hasLabel> b1:.
<b1:> <http://my.authority/vocab/label> 'milk'@en."
} |
...