Skip to content

Instantly share code, notes, and snippets.

@krebeck krebeck/DPLAtemplate.xml
Last active Jan 22, 2018

Embed
What would you like to do?
template for outputting OpenRefine document in DPLA metadata
<!-- For Prefix -->
<?xml version="1.0" encoding="UTF-8"?>
<mapCollection xmlns="http://digital.library.wisc.edu/1711.dl/DC-DPLA" xmlns:dc_qual="http://digital.library.wisc.edu/1711.dl/DC-DPLA" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:dct="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:edm="http://www.europeana.eu/schemas/edm/" xsi:schemaLocation="http://digital.library.wisc.edu/1711.dl/DC-DPLA http://digital.library.wisc.edu/1711.dl/DC-DPLA-Schema">
<!-- For Row Template -->
<metadata>
<dc_qual:qualifieddc xmlns="http://digital.library.wisc.edu/1711.dl/DC-DPLA" xmlns:dc_qual="http://digital.library.wisc.edu/1711.dl/DC-DPLA" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:dct="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:edm="http://www.europeana.eu/schemas/edm/" xsi:schemaLocation="http://digital.library.wisc.edu/1711.dl/DC-DPLA http://digital.library.wisc.edu/1711.dl/DC-DPLA-Schema">
<dc:title>{{jsonize(cells["dc:title"].value).replace('"', '')}}</dc:title>
<dc:creator>{{jsonize(cells["dc:creator"].value).replace('"', '')}}</dc:creator>
<dc:contributor>{{jsonize(cells["dc:contributor"].value).replace('"', '')}}</dc:contributor>
<dc:subject>{{jsonize(cells["dc:subject 1"].value).replace('"', '')}}</dc:subject>
<dc:subject>{{jsonize(cells["dc:subject 2"].value).replace('"', '')}}</dc:subject>
<dc:subject>{{jsonize(cells["dc:subject 3"].value).replace('"', '')}}</dc:subject>
<dc:subject>{{jsonize(cells["dc:subject 4"].value).replace('"', '')}}</dc:subject>
<dc:subject>{{jsonize(cells["dc:subject 5"].value).replace('"', '')}}</dc:subject>
<dc:description>{{jsonize(cells["dc:description"].value).replace('"', '')}}</dc:description>
<dc:publisher>{{jsonize(cells["dc:publisher"].value).replace('"', '')}}</dc:publisher>
<dc:date>{{jsonize(cells["dc:date 1"].value).replace('"', '')}}</dc:date>
<dc:type xsi:type="dct:DCMIType">{{jsonize(cells["dc:type 1"].value).replace('"', '')}}</dc:type>
<dc:format>{{jsonize(cells["dc:format"].value).replace('"', '')}}</dc:format>
<dc:identifier>{{jsonize(cells["dc:identifier"].value).replace('"', '')}}</dc:identifier>
<dc:identifier>{{jsonize(cells["dc:identifier2"].value).replace('"', '')}}</dc:identifier>
<dc:identifier>{{jsonize(cells["dc:identifier3"].value).replace('"', '')}}</dc:identifier>
<dc:identifier>{{jsonize(cells["dc:identifier4"].value).replace('"', '')}}</dc:identifier>
<dc:identifier>{{jsonize(cells["dc:identifier5"].value).replace('"', '')}}</dc:identifier>
<dc:language xsi:type="dct:ISO639-2">eng</dc:language>
<dct:isPartOf>{{jsonize(cells["dcterms:isPartOf"].value).replace('"', '')}}</dct:isPartOf>
<dc:rights>{{jsonize(cells["dc:rights"].value).replace('"', '')}}</dc:rights>
<edm:rights>{{jsonize(cells["edm:rights"].value).replace('"', '')}}</edm:rights>
<edm:preview>{{jsonize(cells["edm:preview"].value).replace('"', '')}}</edm:preview>
<edm:isShownAt>{{jsonize(cells["edm:isShownAt"].value).replace('"', '')}}</edm:isShownAt>
<edm:provider>District Digital</edm:provider>
<edm:dataProvider>{{jsonize(cells["edm:dataProvider"].value).replace('"', '')}}</edm:dataProvider>
</dc_qual:qualifieddc>
</metadata>
<!-- Don't put anything in Row Separator -->
<!-- For Suffix -->
</mapCollection>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.