forked from zbw/sparql-queries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubject_folders.rq
29 lines (28 loc) · 957 Bytes
/
subject_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
# Full list of subject 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 ?subjectNta ?pm20 (str(?pm20LabelLang) as ?pm20Label) (str(?docCount) as ?docs) ?geoNtaLong ?subjectNtaLong
where {
values ( ?language ) {
( 'de' )
}
?pm20 a zbwext:SubjectFolder ;
skos:prefLabel ?pm20LabelLang ;
zbwext:country ?country ;
zbwext:subject ?subject ;
zbwext:freeDocCount ?docCount .
filter(lang(?pm20LabelLang) = ?language)
graph <http://zbw.eu/beta/subject/ng> {
?subject skos:notation ?subjectNta ;
zbwext:notationLong ?subjectNtaLong .
}
graph <http://zbw.eu/beta/geo/ng> {
?country skos:notation ?geoNta ;
zbwext:notationLong ?geoNtaLong .
}
}
order by ?geoNtaLong ?subjectNtaLong