forked from zbw/sparql-queries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathware_folders.rq
32 lines (31 loc) · 1015 Bytes
/
ware_folders.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
# Full list of ware folders
#
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 ?wareLabel ?pm20 ?pm20Label (str(?docCount) as ?docs) ?geoNtaLong
where {
values ( ?language ) {
( 'de' )
}
?pm20 a zbwext:WareFolder ;
skos:prefLabel ?pm20LabelLang ;
zbwext:country ?country ;
zbwext:ware ?ware ;
zbwext:freeDocCount ?docCount .
filter(lang(?pm20LabelLang) = ?language)
bind(str(?pm20LabelLang) as ?pm20Label)
graph <http://zbw.eu/beta/ware/ng> {
?ware skos:notation ?wareNta ;
skos:prefLabel ?wareLabelLang;
}
graph <http://zbw.eu/beta/geo/ng> {
?country skos:notation ?geoNta ;
zbwext:notationLong ?geoNtaLong .
}
filter(lang(?wareLabelLang) = ?language)
bind(str(?wareLabelLang) as ?wareLabel)
}
order by ?geoNtaLong ?pm20Label