This page describes the formats that are currently available within LegislationAPI. Although only a few formats are available at the moment, we intend to make legislation content including metadata and the results of searches, available in a variety of different formats so that you can pick one that suits your needs. The available formats, their mime type and the filename used within therepresentation URI for the document are listed in the following table.
| Format | Mime Type | Filename |
|---|---|---|
| XML | application/xml ortext/xml | data.xml |
| HTML | application/xhtml+xml | data.rdf |
| RDF/XML | application/rdf+xml | data.rdf |
| Atom | application/atom+xml | data.feed |
We provide the content of legislation in XML format using aLegislation Schema that includes both metadata and the content of legislation. The Legislation Schema usesDublin Core for metadata,XHTML for tables andMathML for formulae.
Both the table of contents and the full content of the legislation includes links to other parts of the legislation. TheIdURI attribute provides theidentifier URI for the section. This URI identifies the section, but not the particular version that should be linked to from the view of the legislation that you are looking at. TheDocumentURI attribute provides thedocument URI for the section, which includes any selected extent and the currently viewed version.
We provide the content of sections and tables of contents in a ready-transformed HTML format that is suitable for embedding within a web page.These HTML snippets are only available through theirrepresentation URI and not through content negotiation.
We are publishing RDF about the legislation that is provided here using the vocabularies:
| Vocabulary | Prefix | Namespace |
|---|---|---|
| RDF Schema | rdfs | http://www.w3.org/2000/01/rdf-schema# |
| OWL | owl | http://www.w3.org/2002/07/owl# |
| Dublin Core Terms | dct | http://purl.org/dc/terms/ |
| FOAF | foaf | http://xmlns.com/foaf/0.1/ |
| XHTML Vocabulary | xhv | http://www.w3.org/1999/xhtml/vocab# |
| FRBR | frbr | http://purl.org/vocab/frbr/core# |
| Metalex | metalex | http://purl.org/vocab/frbr/core# |
We are using these vocabularies because they will provide high recognition and ability for reuse without developers having to understand a specific legislation ontology. We do intend to use a specific legislation ontology in addition.
All content is available under theOpen Government Licence v3.0 except whereotherwise stated. This site additionally contains content derived from EUR-Lex, reused under the terms of theCommission Decision 2011/833/EU on the reuse of documents from the EU institutions. For more information see theEUR-Lex public statement on re-use.