Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add json-ld context #57

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The objective of a Linked Data Event Stream is to allow consumers to replicate a

The HTML specification can be accessed from [here](https://w3id.org/ldes/specification).

The JSON-LD context can be accessed from [here](https://w3id.org/ldes/context).

This specification uses [TREE](https://w3id.org/tree/specification) for its collection and fragmentation features, which in its turn is compatible to other specifications such as Activity Streams, DCAT-AP, LDP or Shape Trees.

If you are new to the concept of Linked Data Event Stream or Linked Data, [this short training](https://academy.europa.eu/courses/publishing-data-with-linked-data-event-streams-why-and-how) introduces the main concepts.
Expand Down
28 changes: 28 additions & 0 deletions context.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"@context": {
"tree": "https://w3id.org/tree#",
"ldes": "https://w3id.org/ldes#",
"shape": { "@type":"@id", "@id":"tree:shape"},
"xsd": "http://www.w3.org/2001/XMLSchema#",
"EventStream": "ldes:EventStream",
"EventSource": "ldes:EventSource",
"RetentionPolicy": "ldes:RetentionPolicy",
"LatestVersionSubset": "ldes:LatestVersionSubset",
"DurationAgoPolicy": "ldes:DurationAgoPolicy",
"PointInTimePolicy": "PointInTimePolicy",
brechtvdv marked this conversation as resolved.
Show resolved Hide resolved
"node": {"@type": "@id", "@id": "tree:node"},
"members": {"@type": "@id", "@id": "tree:member", "@container":"@list"},
"relations": {"@id": "tree:relation"},
"view": {"@id": "tree:view"},
"path": {"@container": "@list", "@id": "tree:path", "@type": "@id"},
"value": {"@id":"tree:value"},
"timestampPath": {"@id":"ldes:timestampPath", "@type":"@id", "@container":"@list"},
"versionOfPath": {"@id":"ldes:versionOfPath", "@type":"@id", "@container":"@list"},
"retention": {"@id":"ldes:retentionPolicy", "@type": "@id", "@container":"@list"},
brechtvdv marked this conversation as resolved.
Show resolved Hide resolved
"amount": {"@id":"ldes:amount","@type":"xsd:nonNegativeInteger"},
"pointInTime": {"@id":"ldes:pointInTime","@type":"xsd:dateTime"},
"versionKey": {"@id":"ldes:versionKey", "@type":"@id", "@container":"@list"},
"versionMaterializationOf": {"@id":"ldes:versionMaterializationOf", "@type":"@id"},
"versionMaterializationUntil": {"@id":"ldes:versionMaterializationUntil","@type":"xsd:dateTime"}
}
}