Versions Compared

Key

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

...

Code Block
titleSplit an entity with multiple triples into two entities
collapsetrue
{ 
  "@context": "https://www.w3.org/ns/activitystreams",
  "summary": "Deprecate triples related to cow milk.",
  "type": "Delete", 
  "actor": { 
    "type": "Authority", 
    "id":   "http://my.authority",    
    "name": "My Authority"
   },  
  "graph": "<http://my_repo/entity/cow_milk> <http://my.authority/vocab/altLabel> 'bovine milk'@en.
            <http://my_repo/entity/cow_milk> <http://my.authority/vocab/altLabel> 'oxen milk'@en."
}  

{
  "@context": "https://www.w3.org/ns/activitystreams",
  "summary": "Add term bovine milk split from cow milk",
  "type": "Add",
  "actor": {
    "type": "Authority",
    "id":   "http://my.authority",
    "name": "My Authority"
  },
  "graph": "<http://my_repo/entity/bovine_milk> <http://my.authority/vocab/hasLabel> 'bovine milk'@en. 
            <http://my_repo/entity/bovine_milk> <http://my.authority/vocab/altLabel> 'cow milk'@en."
}

{
  "@context": "https://www.w3.org/ns/activitystreams", 
  "summary": "Add term oxen milk split from cow milk", 
  "type": "Add", 
  "actor": { 
    "type": "Authority", 
    "id": "http://my.authority",
    "name": "My Authority"
  },
  "graph": "<http://my_repo/entity/oxen_milk> <http://my.authority/vocab/hasLabel> 'oxen milk'@en.
            <http://my_repo/entity/oxen_milk> <http://my.authority/vocab/altLabel> 'cow milk'@en."
}

{
  "@context": "https://www.w3.org/ns/activitystreams",
  "summary": "Deprecate term cow milk. Split into bovine milk and oxen milk.",
  "type": "Deprecated",
  "actor": {
    "type": "Authority",
    "id": "http://my.authority",
    "name": "My Authority"
  },
  "graph": "<http://my_repo/entity/cow_milk> <http://my.authority/vocab/status> 'deprecated'.
            <http://my_repo/entity/cow_milk> <http://my.authority/vocab/use_instead> <http://my_repo/entity/bovine_milk>.
            <http://my_repo/entity/cow_milk> <http://my.authority/vocab/use_instead> <http://my_repo/entity/oxen_milk>."
}


Merge Example:

NOTE: For entities, Deprecation is preferred over Delete.  As such, the entities being merged are shown as deprecated.

Code Block
titleMerge entities into a single entity
collapsetrue
{
  "@context": "https://www.w3.org/ns/activitystreams",
  "summary": "Add term cow milk merged from bovine milk and oxen 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/altLabel> 'bovine milk'@en.
            <http://my_repo/entity/cow_milk> <http://my.authority/vocab/altLabel> 'oxen milk'@en."}

{
  "@context": "https://www.w3.org/ns/activitystreams", 
  "summary": "Deprecate term oxen milk merged with bovine milk into cow milk", 
  "type": "Deprecate", 
  "actor": { 
    "type": "Authority", 
    "id":   "http://my.authority",
    "name": "My Authority"
  },
  "graph": "<http://my_repo/entity/oxen_milk> <http://my.authority/vocab/hasLabel> 'oxen milk'@en"
            <http://my_repo/entity/oxen_milk> <http://my.authority/vocab/use_instead> <http://my_repo/entity/cow_milk>. 
}

{ 
  "@context": "https://www.w3.org/ns/activitystreams", 
  "summary": "Deprecate term bovine milk merged with oxen milk into cow milk", 
  "type": "Deprecated", 
  "actor": { 
    "type": "Authority", 
    "id":   "http://my.authority",
    "name": "My Authority"
  }, 
  "graph": "<http://my_repo/entity/bovine_milk> <http://my.authority/vocab/status> 'deprecated'."
            <http://my_repo/entity/bovine_milk> <http://my.authority/vocab/use_instead> <http://my_repo/entity/cow_milk>.
}



RDF Diff

...