diff options
author | zPlus <zplus@peers.community> | 2019-06-01 20:46:57 +0200 |
---|---|---|
committer | zPlus <zplus@peers.community> | 2019-06-01 20:46:57 +0200 |
commit | 05ddb5d44c757dee7a3b6bbb56405fafca364815 (patch) | |
tree | 401215ca04ed4b49c34bc4b482d04000f0c8ab46 | |
parent | b53641c1fa4806d6274a4d05347aa9ed0573ac15 (diff) |
Use correct RDF URI.
-rw-r--r-- | specification/forgefed-vocabulary.md | 35 | ||||
-rw-r--r-- | vocabulary/README.md | 2 |
2 files changed, 26 insertions, 11 deletions
diff --git a/specification/forgefed-vocabulary.md b/specification/forgefed-vocabulary.md index 403c6f8..a26cfc8 100644 --- a/specification/forgefed-vocabulary.md +++ b/specification/forgefed-vocabulary.md @@ -33,7 +33,7 @@ platforms that support the ForgeFed protocol. ## Types -Base URI: `https://peers.community/ns/repo-fed-vocab#` +Base URI: `https://forgefed.peers.community/ns` ### Activity Types @@ -48,7 +48,10 @@ ActivityPub) but it's here for reference. **Example:** { - "@context": "https://www.w3.org/ns/activitystreams", + "@context": [ + "https://www.w3.org/ns/activitystreams", + "https://forgefed.peers.community/ns" + ], "summary": "Alice followed Bob", "type": "Follow", "actor": "https://localhost/alice", @@ -57,7 +60,7 @@ ActivityPub) but it's here for reference. #### Push -**URI:** `https://peers.community/ns/repo-fed-vocab#Push` +**URI:** `https://forgefed.peers.community/ns#Push` **Notes:** Indicates that new content has been pushed to the repository. The Activity's object MUST contain a list of Commits. @@ -65,7 +68,10 @@ Activity's object MUST contain a list of Commits. **Example:** { - "@context": "https://peers.community/ns/repo-fed-vocab", + "@context": [ + "https://www.w3.org/ns/activitystreams", + "https://forgefed.peers.community/ns" + ], "type": "Push", "actor": "https://localhost/alice/repo2", "object": [ @@ -82,14 +88,17 @@ Activity's object MUST contain a list of Commits. #### Repository -**URI:** `https://peers.community/ns/repo-fed-vocab#Repository` +**URI:** `https://forgefed.peers.community/ns#Repository` **Notes:** Represents a single repository. **Example:** { - "@context": "https://peers.community/ns/repo-fed-vocab#", + "@context": [ + "https://www.w3.org/ns/activitystreams", + "https://forgefed.peers.community/ns" + ], "type": "Repository", "name": "Homeworks-2019" } @@ -98,14 +107,17 @@ Activity's object MUST contain a list of Commits. #### Commit -**URI:** `https://peers.community/ns/repo-fed-vocab#Commit` +**URI:** `https://forgefed.peers.community/ns#Commit` **Notes:** Represents a single Commit in a Repository. **Example:** { - "@context": "https://peers.community/ns/repo-fed-vocab#", + "@context": [ + "https://www.w3.org/ns/activitystreams", + "https://forgefed.peers.community/ns" + ], "type": "Commit", "id": "https://localhost/alice/repo2/commit/2c7323781aec1f7", "author": "" @@ -114,7 +126,7 @@ Activity's object MUST contain a list of Commits. #### Ticket -**URI:** `https://peers.community/ns/repo-fed-vocab#Ticket` +**URI:** `https://forgefed.peers.community/ns#Ticket` **Notes:** Represents a single ticket (aka "issue") for a Repository. Tickets are used to track ideas, enhancements, tasks, or bugs. @@ -122,7 +134,10 @@ are used to track ideas, enhancements, tasks, or bugs. **Example:** { - "@context": "https://peers.community/ns/repo-fed-vocab#", + "@context": [ + "https://www.w3.org/ns/activitystreams", + "https://forgefed.peers.community/ns" + ], "type": "Ticket", "id": "https://localhost/alice/repo2/issues/42", "attributedTo": "", diff --git a/vocabulary/README.md b/vocabulary/README.md index 9751028..9c10817 100644 --- a/vocabulary/README.md +++ b/vocabulary/README.md @@ -44,7 +44,7 @@ show the use of `dc:author` there. We may need a base URI for the ActivityPub extension. I suggest we add the following mapping to the JSON-LD context: -`"rfv": "https://peers.community/ns/repo-fed-vocab#"` +`"forge": "https://forgefed.peers.community/ns#"` And we can put in this namespace everything that doesn't come from other places. Later that mapping could be changed into a remote context URL, but, |