forked from zbw/sparql-queries
-
Notifications
You must be signed in to change notification settings - Fork 0
/
construct_skos_labels.rq
47 lines (46 loc) · 1.25 KB
/
construct_skos_labels.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
# construct skos:prefLabel and skos:altLabel for gnd
#
PREFIX gndo: <https://d-nb.info/standards/elementset/gnd#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
#
construct {
?gnd skos:prefLabel ?prefLabel ;
skos:altLabel ?altLabel.
}
where {
{
?gnd gndo:preferredNameForTheConferenceOrEvent ?pref .
} union {
?gnd gndo:preferredNameForTheCorporateBody ?pref .
} union {
?gnd gndo:preferredNameForTheFamily ?pref .
} union {
?gnd gndo:preferredNameForThePerson ?pref .
} union {
?gnd gndo:preferredNameForThePlaceOrGeographicName ?pref .
} union {
?gnd gndo:preferredNameForTheSubjectHeading ?pref .
} union {
?gnd gndo:preferredNameForTheWork ?pref .
}
bind (strlang(?pref, 'de') as ?prefLabel)
#
optional {
{
?gnd gndo:variantNameForTheConferenceOrEvent ?alt .
} union {
?gnd gndo:variantNameForTheCorporateBody ?alt .
} union {
?gnd gndo:variantNameForTheFamily ?alt .
} union {
?gnd gndo:variantNameForThePerson ?alt .
} union {
?gnd gndo:variantNameForThePlaceOrGeographicName ?alt .
} union {
?gnd gndo:variantNameForTheSubjectHeading ?alt .
} union {
?gnd gndo:variantNameForTheWork ?alt .
}
bind (strlang(?alt, 'de') as ?altLabel)
}
}