diff options
author | fr33domlover <fr33domlover@riseup.net> | 2020-07-23 12:49:40 +0300 |
---|---|---|
committer | fr33domlover <fr33domlover@riseup.net> | 2020-07-23 12:49:40 +0300 |
commit | fae153dccb16220003c22250e940b07ac139aab7 (patch) | |
tree | fea4914be7b29a411697b1a33bc30dde453770ec | |
parent | 9b9079eb030f7e54f65eb1bcc551d9e0c12b623e (diff) |
Vocabulary spec: Add property 'previousVersions'
-rw-r--r-- | rdf/context.jsonld | 10 | ||||
-rw-r--r-- | spec/vocabulary.md | 35 |
2 files changed, 42 insertions, 3 deletions
diff --git a/rdf/context.jsonld b/rdf/context.jsonld index e42b6ff..53559bb 100644 --- a/rdf/context.jsonld +++ b/rdf/context.jsonld @@ -17,12 +17,19 @@ "earlyItems": { "@id": "forge:earlyItems", "@type": "@id" }, + "previousVersions": { + "@id": "forge:previousVersions", + "@type": "@id", + "@container": "@list" }, "assignedTo": { "@id": "forge:assignedTo", "@type": "@id" }, "isResolved": { "@id": "forge:isResolved", "@type": "xsd:boolean" }, + "resolvedBy": { + "@id": "forge:resolvedBy", + "@type": "@id" }, "dependsOn": { "@id": "forge:dependsOn", "@type": "@id" }, @@ -59,9 +66,6 @@ "ref": { "@id": "forge:ref", "@type": "xsd:string" }, - "resolvedBy": { - "@id": "forge:resolvedBy", - "@type": "@id" }, "team": { "@id": "forge:team", "@type": "@id" }, diff --git a/spec/vocabulary.md b/spec/vocabulary.md index 8b79325..6740e0d 100644 --- a/spec/vocabulary.md +++ b/spec/vocabulary.md @@ -297,6 +297,41 @@ examle, if `items` lists items in reverse chronogical order, then so does } ``` +## previousVersions {#prop-previousversions} + +**URI:** `https://forgefed.peers.community/ns#previousVersions` + +**Notes** Specifies the previous versions of the subject, as an ordered list in +reverse chronological order. + +**Domain:** [Object][] + +**Range:** `rdf:List` of objects of the same `@type` as the subject + +**Functional:** Yes + +**Inverse of:** (None) + +**Example:** + +```json +{ + "@context": [ + "https://www.w3.org/ns/activitystreams", + "https://forgefed.peers.community/ns" + ], + "id": "https://dev.example/aviva/notes/107", + "type": "Note", + "attributedTo": "https://dev.example/aviva", + "content": "I agree!", + "previousVersions": [ + "https://dev.example/aviva/notes/107_old_version", + "https://dev.example/aviva/notes/107_very_old_version", + "https://dev.example/aviva/notes/107_ancient_version" + ] +} +``` + ## assignedTo {#prop-assignedto} **URI:** `https://forgefed.peers.community/ns#assignedTo` |