Skip to content

Commit

Permalink
chore: Update JSON-LD context for activity anchors
Browse files Browse the repository at this point in the history
closes #1428

Signed-off-by: Bob Stasyszyn <Bob.Stasyszyn@securekey.com>
  • Loading branch information
bstasyszyn committed Aug 17, 2022
1 parent d8626ea commit 68ff8cb
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 216 deletions.
61 changes: 7 additions & 54 deletions internal/pkg/ldcontext/payload/activity-anchors-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,76 +9,29 @@
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"aa": "https://w3id.org/activityanchors#",
"as": "https://www.w3.org/ns/activitystreams#",
"parent": "aa:parent"
}
},
"AnchorIndex": {
"@id": "https://w3id.org/activityanchors#AnchorIndex",
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"aa": "https://w3id.org/activityanchors#",
"as": "https://www.w3.org/ns/activitystreams#",
"resources": {
"@id": "aa:resources",
"@type": "@json"
}
}
},
"AnchorResource": {
"@id": "https://w3id.org/activityanchors#AnchorResource",
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"aa": "https://w3id.org/activityanchors#",
"as": "https://www.w3.org/ns/activitystreams#",
"previousAnchor": "aa:previousAnchor"
}
},
"AnchorCredential": {
"@id": "https://w3id.org/activityanchors#AnchorCredential",
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type"
}
},
"AnchorProof": {
"@id": "https://w3id.org/activityanchors#AnchorProof",
"@context": {
"@version": 1.1,
"@protected": true,

"id": "@id",
"type": "@type"
}
},
"AnchorReference": {
"@id": "https://w3id.org/activityanchors#AnchorReference",
"AnchorReceipt": {
"@id": "https://w3id.org/activityanchors#AnchorReceipt",
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type"
}
},
"ContentAddressedStorage": {
"@id": "https://w3id.org/activityanchors#ContentAddressedStorage",
"AnchorCredential": {
"@id": "https://w3id.org/activityanchors#AnchorCredential",
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"aa": "https://w3id.org/activityanchors#",
"cid": "aa:contentIdentifier"
"anchor": "https://w3id.org/activityanchors#anchor",
"profile": "https://w3id.org/activityanchors#profile"
}
}
}
Expand Down
63 changes: 9 additions & 54 deletions samples/docker/contexts/ld-contexts.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,76 +11,31 @@
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"aa": "https://w3id.org/activityanchors#",
"as": "https://www.w3.org/ns/activitystreams#",
"parent": "aa:parent"
}
},
"AnchorIndex": {
"@id": "https://w3id.org/activityanchors#AnchorIndex",
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"aa": "https://w3id.org/activityanchors#",
"as": "https://www.w3.org/ns/activitystreams#",
"resources": {
"@id": "aa:resources",
"@type": "@json"
}
}
},
"AnchorResource": {
"@id": "https://w3id.org/activityanchors#AnchorResource",
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"aa": "https://w3id.org/activityanchors#",
"as": "https://www.w3.org/ns/activitystreams#",
"previousAnchor": "aa:previousAnchor"
}
},
"AnchorCredential": {
"@id": "https://w3id.org/activityanchors#AnchorCredential",
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type"
}
},
"AnchorProof": {
"@id": "https://w3id.org/activityanchors#AnchorProof",
"@context": {
"@version": 1.1,
"@protected": true,

"id": "@id",
"type": "@type"
}
},
"AnchorReference": {
"@id": "https://w3id.org/activityanchors#AnchorReference",
"AnchorReceipt": {
"@id": "https://w3id.org/activityanchors#AnchorReceipt",
"@context": {
"@version": 1.1,
"@protected": true,

"id": "@id",
"type": "@type"
}
},
"ContentAddressedStorage": {
"@id": "https://w3id.org/activityanchors#ContentAddressedStorage",
"AnchorCredential": {
"@id": "https://w3id.org/activityanchors#AnchorCredential",
"@context": {
"@version": 1.1,
"@protected": true,

"id": "@id",
"type": "@type",
"aa": "https://w3id.org/activityanchors#",
"cid": "aa:contentIdentifier"
"anchor": "https://w3id.org/activityanchors#anchor",
"profile": "https://w3id.org/activityanchors#profile"
}
}
}
Expand Down
63 changes: 9 additions & 54 deletions samples/tutorial/contexts/ld-contexts.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,76 +11,31 @@
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"aa": "https://w3id.org/activityanchors#",
"as": "https://www.w3.org/ns/activitystreams#",
"parent": "aa:parent"
}
},
"AnchorIndex": {
"@id": "https://w3id.org/activityanchors#AnchorIndex",
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"aa": "https://w3id.org/activityanchors#",
"as": "https://www.w3.org/ns/activitystreams#",
"resources": {
"@id": "aa:resources",
"@type": "@json"
}
}
},
"AnchorResource": {
"@id": "https://w3id.org/activityanchors#AnchorResource",
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"aa": "https://w3id.org/activityanchors#",
"as": "https://www.w3.org/ns/activitystreams#",
"previousAnchor": "aa:previousAnchor"
}
},
"AnchorCredential": {
"@id": "https://w3id.org/activityanchors#AnchorCredential",
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type"
}
},
"AnchorProof": {
"@id": "https://w3id.org/activityanchors#AnchorProof",
"@context": {
"@version": 1.1,
"@protected": true,

"id": "@id",
"type": "@type"
}
},
"AnchorReference": {
"@id": "https://w3id.org/activityanchors#AnchorReference",
"AnchorReceipt": {
"@id": "https://w3id.org/activityanchors#AnchorReceipt",
"@context": {
"@version": 1.1,
"@protected": true,

"id": "@id",
"type": "@type"
}
},
"ContentAddressedStorage": {
"@id": "https://w3id.org/activityanchors#ContentAddressedStorage",
"AnchorCredential": {
"@id": "https://w3id.org/activityanchors#AnchorCredential",
"@context": {
"@version": 1.1,
"@protected": true,

"id": "@id",
"type": "@type",
"aa": "https://w3id.org/activityanchors#",
"cid": "aa:contentIdentifier"
"anchor": "https://w3id.org/activityanchors#anchor",
"profile": "https://w3id.org/activityanchors#profile"
}
}
}
Expand Down
63 changes: 9 additions & 54 deletions test/bdd/fixtures/contexts/ld-contexts.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,76 +11,31 @@
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"aa": "https://w3id.org/activityanchors#",
"as": "https://www.w3.org/ns/activitystreams#",
"parent": "aa:parent"
}
},
"AnchorIndex": {
"@id": "https://w3id.org/activityanchors#AnchorIndex",
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"aa": "https://w3id.org/activityanchors#",
"as": "https://www.w3.org/ns/activitystreams#",
"resources": {
"@id": "aa:resources",
"@type": "@json"
}
}
},
"AnchorResource": {
"@id": "https://w3id.org/activityanchors#AnchorResource",
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"aa": "https://w3id.org/activityanchors#",
"as": "https://www.w3.org/ns/activitystreams#",
"previousAnchor": "aa:previousAnchor"
}
},
"AnchorCredential": {
"@id": "https://w3id.org/activityanchors#AnchorCredential",
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type"
}
},
"AnchorProof": {
"@id": "https://w3id.org/activityanchors#AnchorProof",
"@context": {
"@version": 1.1,
"@protected": true,

"id": "@id",
"type": "@type"
}
},
"AnchorReference": {
"@id": "https://w3id.org/activityanchors#AnchorReference",
"AnchorReceipt": {
"@id": "https://w3id.org/activityanchors#AnchorReceipt",
"@context": {
"@version": 1.1,
"@protected": true,

"id": "@id",
"type": "@type"
}
},
"ContentAddressedStorage": {
"@id": "https://w3id.org/activityanchors#ContentAddressedStorage",
"AnchorCredential": {
"@id": "https://w3id.org/activityanchors#AnchorCredential",
"@context": {
"@version": 1.1,
"@protected": true,

"id": "@id",
"type": "@type",
"aa": "https://w3id.org/activityanchors#",
"cid": "aa:contentIdentifier"
"anchor": "https://w3id.org/activityanchors#anchor",
"profile": "https://w3id.org/activityanchors#profile"
}
}
}
Expand Down

0 comments on commit 68ff8cb

Please sign in to comment.