Skip to content

Instantly share code, notes, and snippets.

@ewg118
Created November 30, 2021 14:42
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 ewg118/28d7b1b1aa844f0ca80ac883b52f869a to your computer and use it in GitHub Desktop.
Save ewg118/28d7b1b1aa844f0ca80ac883b52f869a to your computer and use it in GitHub Desktop.
Royal Library of Belgium OpenRefine template for Nomisma
<nmo:NumismaticObject rdf:about="{{cells['Permalink'].value}}">
<dcterms:title xml:lang="en">{{cells["Title"].value}}</dcterms:title>
<dcterms:identifier>{{cells["IDN"].value}}</dcterms:identifier>
<nmo:hasCollection rdf:resource="http://nomisma.org/id/kbr"/>
<nmo:hasTypeSeriesItem rdf:resource="{{cells["RRC"].value}}"/>
{{forNonBlank(cells["Weight"], c, '<nmo:hasWeight rdf:datatype="http://www.w3.org/2001/XMLSchema#decimal">' + c.value + '</nmo:hasWeight>', "")}}
{{forNonBlank(cells["Diameter"], c, '<nmo:hasDiameter rdf:datatype="http://www.w3.org/2001/XMLSchema#decimal">' + c.value + '</nmo:hasDiameter>', "")}}
{{forNonBlank(cells["Orientation"], c, '<nmo:hasAxis rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">' + c.value + '</nmo:hasAxis>', "")}}
<nmo:hasObverse>
<rdf:Description>
<foaf:depiction rdf:resource="{{cells["Obverse Image"].value}}"/>
</rdf:Description>
</nmo:hasObverse>
<nmo:hasReverse>
<rdf:Description>
<foaf:depiction rdf:resource="{{cells["Reverse Image"].value}}"/>
</rdf:Description>
</nmo:hasReverse>
<void:inDataset rdf:resource="https://www.kbr.be"/>
</nmo:NumismaticObject>
@ewg118
Copy link
Author

ewg118 commented Nov 30, 2021

Prefix: <?xml version="1.0" encoding="UTF-8"?><rdf:RDF xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:nm="http://nomisma.org/id/" xmlns:nmo="http://nomisma.org/ontology#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:void="http://rdfs.org/ns/void#" xmlns:edm="http://www.europeana.eu/schemas/edm/" xmlns:svcs="http://rdfs.org/sioc/services#" xmlns:doap="http://usefulinc.com/ns/doap#">

Suffix: </rdf:RDF>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment