Created
July 21, 2019 17:43
-
-
Save ewg118/b4c22ba15387c4deacddfbf71437bf66 to your computer and use it in GitHub Desktop.
Greek mints without a Pleiades URI for World Heritage Gazetteer Workshop (many Iberian mints)
This file contains 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
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/> | |
PREFIX dcmitype: <http://purl.org/dc/dcmitype/> | |
PREFIX dcterms: <http://purl.org/dc/terms/> | |
PREFIX foaf: <http://xmlns.com/foaf/0.1/> | |
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> | |
PREFIX nm: <http://nomisma.org/id/> | |
PREFIX nmo: <http://nomisma.org/ontology#> | |
PREFIX org: <http://www.w3.org/ns/org#> | |
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> | |
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | |
SELECT ?id ?title ?parent (group_concat(distinct ?match;separator=",") as ?matches) (group_concat(distinct ?label;separator=",") as ?variants) ?lat ?lon WHERE { | |
?id a nmo:Mint ; | |
dcterms:isPartOf nm:greek_numismatics ; | |
skos:prefLabel ?title FILTER (langMatches(lang(?title), "en")) | |
FILTER NOT EXISTS { ?id skos:closeMatch ?pleiades FILTER (contains(str(?pleiades), "pleiades.stoa.org")) } | |
OPTIONAL {?id geo:location/geo:lat ?lat ; | |
geo:location/geo:long ?lon} | |
OPTIONAL {?id skos:closeMatch ?match} | |
OPTIONAL {?id skos:altLabel ?label} | |
OPTIONAL {?id skos:broader ?broader . ?broader skos:prefLabel ?parent FILTER (langMatches(lang(?parent), "en"))} | |
} GROUP BY ?id ?title ?parent ?lat ?lon ORDER BY ?title |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment