From fae153dccb16220003c22250e940b07ac139aab7 Mon Sep 17 00:00:00 2001 From: fr33domlover Date: Jul 23 2020 09:49:40 +0000 Subject: Vocabulary spec: Add property 'previousVersions' --- 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`