Skip to content

Instantly share code, notes, and snippets.

@tomkralidis
Last active August 29, 2015 14:02
Show Gist options
  • Save tomkralidis/ea2f66606c3e27eb77af to your computer and use it in GitHub Desktop.
Save tomkralidis/ea2f66606c3e27eb77af to your computer and use it in GitHub Desktop.
Dublin Core RDF template
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dct="http://purl.org/dc/terms/" xmlns:ows="http://www.opengis.net/ows">
<rdf:Description rdf:about="{{ record.identifier }}">
<dc:identifier>{{ record.identifier }}</dc:identifier>
<dc:title>{{ record.title }}</dc:title>
<dc:type>{{ record.type }}</dc:type>
<dc:format>{{ record.format }}</dc:format>
<dc:description>{{ record.description }}</dc:description>
<dct:abstract>{{ record.abstract }}</dct:abstract>
<dct:modified>{{ record.modified }}</dct:modified>
<dc:creator>NOS Special Projects</dc:creator>
{% for link in record.links %}
<dct:references scheme="{{ link.protocol }}">{{ link.url }}</dct:references>
{% endfor %}
{% for keyword in record.keywords %}
<dc:subject>{{ keyword }}</dc:subject>
{% endfor %}
<ows:BoundingBox crs="{{ bbox.crs }}">
<ows:LowerCorner>{{ bbox.miny }} {{ bbox.minx }}</ows:LowerCorner>
<ows:UpperCorner>{{ bbox.maxy }} {{ bbox.maxx }}</ows:UpperCorner>
</ows:BoundingBox>
</rdf:Description>
</rdf:RDF>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment