forked from zbw/sparql-queries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubjects_colonial_german.rq
51 lines (51 loc) · 1.88 KB
/
subjects_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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Subject 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 ?subjectNta ?pm20 ?pm20Label ?docs (str(?docCount) as ?docsLabel)
where {
values ( ?language ) {
( 'de' )
}
?pm20 a zbwext:SubjectFolder ;
skos:prefLabel ?pm20LabelLang ;
zbwext:country ?country ;
zbwext:subject ?subject ;
zbwext:viewUrl ?docs ;
zbwext:freeDocCount ?docCount .
filter(lang(?pm20LabelLang) = ?language)
bind(str(?pm20LabelLang) as ?pm20Label)
#
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 .
}
# all German colonies + Deutsche Kolonien (in general)
filter( ?geoNta in ('A11','B103','C58','C65','C87','C110','D10','D60' )
# diverse notations in (western) Europe, Germany and Hamburg
|| ( ?geoNta in ('A1','A4','A9', 'A10') && (
# Kolonialpolitik
strstarts(?subjectNta, 'g5')
# Förderung des Rohstoffbezuges aus den Kolonien
|| strstarts(?subjectNta, 'n1 SM2')
# Forschung und Lehre über Kolonien und Ausland
|| strstarts(?subjectNta, 'k1 SM12')
# Kolonialschulwesen (im Mutterland)
|| strstarts(?subjectNta, 'k2 SM5')
# Ausländische und koloniale Arbeiter
|| strstarts(?subjectNta, 'n15 SM11')
# Auslandbanken und Kolonialbanken
|| strstarts(?subjectNta, 'n24 SM12')
) )
# Zentralstelle Kolonialinstitut
|| ( ?geoNta in ('A9') && strstarts(?subjectNta, 'k SM501'))
)
}
order by ?geoNtaLong ?subjectNtaLong