Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
OpenRefine RDF export template with findspot, for the DNB
<nmo:NumismaticObject rdf:about="{{cells['URI'].value}}">
<dcterms:title xml:lang="en">DNB {{cells["Inventory number"].value}}</dcterms:title>
<dcterms:identifier>{{cells["Inventory number"].value}}</dcterms:identifier>
<nmo:hasCollection rdf:resource="http://nomisma.org/id/nnc-dnb"/>
<nmo:hasTypeSeriesItem rdf:resource="{{cells["Type URI"].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["axis"], c, '<nmo:hasAxis rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">' + c.value + '</nmo:hasAxis>', "")}}
<nmo:hasObverse>
<rdf:Description>
<foaf:thumbnail rdf:resource="https://nnc.dnb.nl/api/images/collectie/thumbs/{{cells["Inventory number"].value}}a.jpg"/>
<foaf:depiction rdf:resource="https://nnc.dnb.nl/api/images/collectie/{{cells["Inventory number"].value}}a.jpg"/>
</rdf:Description>
</nmo:hasObverse>
<nmo:hasReverse>
<rdf:Description>
<foaf:thumbnail rdf:resource="https://nnc.dnb.nl/api/images/collectie/thumbs/{{cells["Inventory number"].value}}b.jpg"/>
<foaf:depiction rdf:resource="https://nnc.dnb.nl/api/images/collectie/{{cells["Inventory number"].value}}b.jpg"/>
</rdf:Description>
</nmo:hasReverse>
{{forNonBlank(cells["Findspot URI"], c, '<nmo:hasFindspot>
<nmo:Find>
<crm:P7_took_place_at>
<crm:E53_Place>
<rdfs:label xml:lang="en">' + cells["findspot"].value + '</rdfs:label>
<crm:P89_falls_within rdf:resource="' + c.value + '"/>
</crm:E53_Place>
</crm:P7_took_place_at>
</nmo:Find>
</nmo:hasFindspot>', "")}}
<void:inDataset rdf:resource="https://nnc.dnb.nl/dnb-nnc-ontsluiting-frontend/#/collectie/"/>
</nmo:NumismaticObject>
@ewg118

This comment has been minimized.

Copy link
Owner Author

@ewg118 ewg118 commented Apr 6, 2021

Prefix:

<rdf:RDF xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:crm="http://www.cidoc-crm.org/cidoc-crm/" 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