-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnomisna_region.rq
52 lines (43 loc) · 1.54 KB
/
nomisna_region.rq
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bio: <http://purl.org/vocab/bio/0.1/>
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 osgeo: <http://data.ordnancesurvey.co.uk/ontology/geometry/>
PREFIX rdac: <http://www.rdaregistry.info/Elements/c/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX spatial: <http://jena.apache.org/spatial#>
PREFIX un: <http://www.owl-ontologies.com/Ontology1181490123.owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
CONSTRUCT {
?place1 a crm:E53_Place .
?this a crm:E47_Spatial_Coordinates .
?s a crm:E53_Place .
?s crm:P2_has_type "region" .
?s rdfs:label ?pref .
?s skos:exactMatch ?exact .
?s skos:closeMatch ?close .
?s skos:definition ?def .
?s crm:P89_falls_within ?place1 .
?s crm:P87_is_identified_by ?this .
?this geo:lat ?lat .
?this geo:long ?long .
}
WHERE {
?s a skos:Concept .
?s a nmo:Region .
?s geo:location ?this .
OPTIONAL { ?s skos:exactMatch ?exact . }
OPTIONAL { ?this dcterms:isPartOf ?place1 .}
OPTIONAL { ?this geo:lat ?lat .}
OPTIONAL { ?this geo:long ?long . }
OPTIONAL { ?s skos:closeMatch ?close . }
OPTIONAL { ?s skos:prefLabel ?pref .}
OPTIONAL { ?s skos:definition ?def .}
}