forked from zbw/sparql-queries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwares_colonial_german.rq
34 lines (33 loc) · 1.07 KB
/
wares_colonial_german.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
# Ware folders from former German colonial empire
#
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX zbwext: <http://zbw.eu/namespaces/zbw-extensions/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
#
select ?geoNta ?wareNta ?pm20 ?pm20Label ?docs (str(?docCount) as ?docsLabel)
where {
# English labels are missing for many wares!
values ( ?language ) {
( 'de' )
}
?pm20 a zbwext:WareFolder ;
skos:prefLabel ?pm20LabelLang ;
zbwext:country ?country ;
zbwext:ware ?ware ;
zbwext:viewUrl ?docs ;
zbwext:freeDocCount ?docCount .
filter(lang(?pm20LabelLang) = 'de')
bind(str(?pm20LabelLang) as ?pm20Label)
#
graph <http://zbw.eu/beta/ware/ng> {
?ware skos:notation ?wareNta ;
zbwext:notationLong ?wareNtaLong .
}
graph <http://zbw.eu/beta/geo/ng> {
?country skos:notation ?geoNta ;
zbwext:notationLong ?geoNtaLong .
filter(?geoNta in ('A11','B103','C58','C65','C87','C110','D10','D60'))
}
}
order by ?geoNtaLong ?wareNtaLong