-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathLinkedGeoData-Triplify-Licences.sml
64 lines (53 loc) · 1.6 KB
/
LinkedGeoData-Triplify-Licences.sml
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
53
54
55
56
57
58
59
60
61
Prefix dcterms: <http://purl.org/dc/terms/>
Prefix foaf: <http://xmlns.com/foaf/0.1/>
Prefix cc: <http://creativecommons.org/ns#>
Prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
Prefix lgd:<http://linkedgeodata.org/triplify/>
Prefix lgdrm:<http://linkedgeodata.org/triplify/meta/>
Create View node_licenses As
Construct {
?s
rdfs:isDefinedBy ?d .
?d
a foaf:Document ;
dcterms:licence <http://opendatacommons.org/licenses/odbl/1.0/> ;
foaf:primaryTopic ?s .
// Note: Below is additional output from geonames, see e.g: rapper http://sws.geonames.org/2750405/
// cc:attributionName "GeoNames"^^<http://www.w3.org/2001/XMLSchema#string> ;
// cc:attributionURL <http://sws.geonames.org/2750405/> ;
// dcterms:created "2006-01-15"^^<http://www.w3.org/2001/XMLSchema#date> ;
// dcterms:modified "2013-12-01"^^<http://www.w3.org/2001/XMLSchema#date> ;
}
With
?s = uri(lgd:, 'node', ?id)
?d = uri(lgdrm:, 'node', ?id)
From
nodes
Create View way_licenses As
Construct {
?s
rdfs:isDefinedBy ?d .
?d
a foaf:Document ;
dcterms:licence <http://opendatacommons.org/licenses/odbl/1.0/> ;
foaf:primaryTopic ?s .
}
With
?s = uri(lgd:, 'way', ?id)
?d = uri(lgdrm:, 'way', ?id)
From
ways
Create View relation_licenses As
Construct {
?s
rdfs:isDefinedBy ?d .
?d
a foaf:Document ;
dcterms:licence <http://opendatacommons.org/licenses/odbl/1.0/> ;
foaf:primaryTopic ?s .
}
With
?s = uri(lgd:, 'relation', ?id)
?d = uri(lgdrm:, 'relation', ?id)
From
relations