Versions Compared

Key

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

...

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
titleAdd a single triple
{
  "@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
titleAdd an entity triple with blank nodes
{
  "@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
titleDelete a single triple
{
  "@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"
}


Code Block
titleDelete a triple with blank node
{
  "@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> b1:.
            <b1:> <http://my.authority/vocab/hasLabel> "milk"@en."
}


Code Block
titleChange Existing Triple
{
  "@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"
}

{
  "@context": "https://www.w3.org/ns/activitystreams", 
  "summary": "Add term Milk as a replacement of 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" 
}




RDF Diff

...

Example:

...

languagenone

...



IIIF Change Discovery

Specification: https://iiif.io/api/discovery/0.9/

...