Skip to content
Andreas Kuckartz edited this page Feb 16, 2015 · 3 revisions

Do not use this, work in progress :-)

http://www.hydra-cg.com/spec/latest/core/

A context

{ "name": { "@id": "opengov:name", "@type": "xsd:string" }, "startDate": { "@id": "schorg:startDate", "@type": "xsd:dateTime" }, "endDate": { "@id": "schorg:endDate", "@type": "xsd:dateTime" }
}

Example

{ "@context": { "TODO": "use schema:validFrom and schema:validThrough" }, "@id": "example-ris:term/21", "@type": "opengov:LegislativeTerm", "name": "21. Wahlperiode", "startDate": "2010-12-03T16:30:00+01:00", "endDate": "2013-12-03T16:30:00+01:00" },

Hydra

{ "@context": "http://www.w3.org/ns/hydra/context.jsonld", "@id": "http://api.example.com/doc/", "@type": "ApiDocumentation", "title": "OpenGovLD API", "description": "The OpenGovLD API can represent parliamentary data and is developed by the W3C Open Government Community Group", "entrypoint": "URL of the API's main entry point", "supportedClass": [ ... Classes known to be supported by the Web API ... opengov:Body, opengov:LegislativeTerm, opengov:Person ], "possibleStatus": [ ... Statuses that should be expected and handled properly ... ]

opengov:LegislativeTerm "comment": { "en": "Description of legislative term.", "de": "Beschreibung einer Wahlperiode." } { "label": "name". "comment": { "de": "Nutzerfreundliche Bezeichnung der Wahlperiode.", "en": "Userfriendly name of legislative term." } "domain": "opengov:LegislativeTerm", "range": "xsd:string", "cardinality": 1, "requirement": ZWINGEND },

{ "label": "startDate", "comment": { "de": "Der erste Tag der Wahlperiode.", "en": "The first day of the legislative term." }, "domain": "opengov:LegislativeTerm", "range": "xsd:date", "maxCardinality": 1, "requirement": EMPFOHLEN },

{ "label": "endDate", "comment": { "de": "Der letzte Tag der Wahlperiode.", "en": "The last day of the legislative term" }, "domain": "opengov:LegislativeTerm", "range": "xsd:date", "maxCardinality": 1, "requirement": EMPFOHLEN }

}