Last active
February 27, 2025 16:39
-
-
Save ewg118/1f3a0895a2b63388068e8301f201fdac to your computer and use it in GitHub Desktop.
British Museum coins OpenRefine template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<nmo:NumismaticObject rdf:about="{{cells['URI'].value}}"> | |
<dcterms:title xml:lang="en">British Museum: {{cells["Registration no"].value}}</dcterms:title> | |
<dcterms:identifier>{{cells["Registration no"].value}}</dcterms:identifier> | |
<nmo:hasCollection rdf:resource="http://nomisma.org/id/bm"/> | |
{{forNonBlank(cells["Type URI"], c, '<nmo:hasTypeSeriesItem rdf:resource="' + c.value + '"/>', "")}} | |
{{forNonBlank(cells["Hoard URI"], c, '<dcterms:isPartOf rdf:resource="' + c.value + '"/>', "")}} | |
{{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>', "")}} | |
{{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>', "")}} | |
{{forNonBlank(cells["Combined reference"].value, c, '<foaf:depiction rdf:resource="' + c + '"/>', "")}} | |
{{forNonBlank(cells["Combined thumb"].value, c, '<foaf:thumbnail rdf:resource="' + c + '"/>', "")}} | |
{{forNonBlank(cells["Obverse thumb"].value, c, '<nmo:hasObverse> | |
<rdf:Description> | |
<foaf:thumbnail rdf:resource="' + c + '"/> | |
<foaf:depiction rdf:resource="' + cells["Obverse reference"].value + '"/> | |
</rdf:Description> | |
</nmo:hasObverse>', "")}} | |
{{forNonBlank(cells["Reverse thumb"].value, c, '<nmo:hasReverse> | |
<rdf:Description> | |
<foaf:thumbnail rdf:resource="' + c + '"/> | |
<foaf:depiction rdf:resource="' + cells["Reverse reference"].value + '"/> | |
</rdf:Description> | |
</nmo:hasReverse>', "")}} | |
<void:inDataset rdf:resource="https://www.britishmuseum.org/"/> | |
</nmo:NumismaticObject> | |
{{forNonBlank(cells["Combined IIIF"].value, c, '<edm:WebResource rdf:about="' + cells["Combined reference"].value + '">\n\t\t<svcs:has_service rdf:resource="' + c + '"/>\n\t\t<dcterms:isReferencedBy rdf:resource="' + c + '/info.json"/>\n\t</edm:WebResource>', "")}} | |
{{forNonBlank(cells["Combined IIIF"].value, c, '<svcs:Service rdf:about="' + c + '">\n\t\t<dcterms:conformsTo rdf:resource="http://iiif.io/api/image"/>\n\t\t<doap:implements rdf:resource="http://iiif.io/api/image/2/level1.json"/>\n\t</svcs:Service>', "")}} | |
{{forNonBlank(cells["Obverse IIIF"].value, c, '<edm:WebResource rdf:about="' + cells["Obverse reference"].value + '">\n\t\t<svcs:has_service rdf:resource="' + c + '"/>\n\t\t<dcterms:isReferencedBy rdf:resource="' + c + '/info.json"/>\n\t</edm:WebResource>', "")}} | |
{{forNonBlank(cells["Obverse IIIF"].value, c, '<svcs:Service rdf:about="' + c + '">\n\t\t<dcterms:conformsTo rdf:resource="http://iiif.io/api/image"/>\n\t\t<doap:implements rdf:resource="http://iiif.io/api/image/2/level1.json"/>\n\t</svcs:Service>', "")}} | |
{{forNonBlank(cells["Reverse IIIF"].value, c, '<edm:WebResource rdf:about="' + cells["Reverse reference"].value + '">\n\t\t<svcs:has_service rdf:resource="' + c + '"/>\n\t\t<dcterms:isReferencedBy rdf:resource="' + c + '/info.json"/>\n\t</edm:WebResource>', "")}} | |
{{forNonBlank(cells["Reverse IIIF"].value, c, '<svcs:Service rdf:about="' + c + '">\n\t\t<dcterms:conformsTo rdf:resource="http://iiif.io/api/image"/>\n\t\t<doap:implements rdf:resource="http://iiif.io/api/image/2/level1.json"/>\n\t</svcs:Service>', "")}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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#" xmlns:crm="http://www.cidoc-crm.org/cidoc-crm/" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
Suffix:
</rdf:RDF>