Skip to content

Instantly share code, notes, and snippets.

@ldodds
Created June 10, 2013 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ldodds/5750746 to your computer and use it in GitHub Desktop.
Save ldodds/5750746 to your computer and use it in GitHub Desktop.
Example of a rights statement in RDFa
<!DOCTYPE html>
<html prefix="dct: http://purl.org/dc/terms/
rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
dcat: http://www.w3.org/ns/dcat#
odrs: http://schema.theodi.org/odrs#">
<head>
<title>Example ODRS in RDFa</title>
</head>
<body>
<div typeof="dcat:Dataset" resource="http://gov.example.org/dataset/finances">
<h1 property="dct:title">Example Finances Dataset</h1>
<div property="dct:rights" resource="#rights">
<div resource="#rights">
<h2 property="rdfs:label">Rights Statement</h2>
<ul>
<li>Data Licence: <a href="http://reference.data.gov.uk/id/open-government-licence"
property="odrs:dataLicence">UK Open Government Licence (OGL)</a>
</li>
<li>Content Licence: <a href="http://reference.data.gov.uk/id/open-government-licence"
property="odrs:contentLicence">UK Open Government Licence (OGL)</a>
</li>
</ul>
<p>
When re-using this data please preserve the following copyright notice:
"<span property="odrs:copyrightNotice">Contains public sector information licensed under the Open Government Licence v1.0</span>".
</p>
<p>
If you would like to attribute your use of this dataset, please use a link similar to the following:
<a href="http://gov.example.org/dataset/finances"
property="odrs:attributionURL">
<span property="odrs:attributionText">Example Department</span>
</a>.
</p>
</div>
</div>
<div property="dct:license"
resource="http://reference.data.gov.uk/id/open-government-licence">
<a href="http://reference.data.gov.uk/id/open-government-licence">
<span property="dct:title">UK Open Government Licence (OGL)</span>
</a>
</div>
<!-- additional markup with further description of dataset -->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment