Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Sidecar specification describing activity types (e.g. add, delete, etc.)

Add Example:

Code Block
languagenone
titleAdd a single triple
collapsetrue
{
  "@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
languagenone
titleAdd an entity with multiple triples
collapsetrue
{
  "@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
languagenone
titleAdd an entity with a blank node
collapsetrue
{
  "@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."
}

...