This repository has been archived by the owner on Oct 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
eu-vocabularies.rq
51 lines (43 loc) · 2.11 KB
/
eu-vocabularies.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
PREFIX cdm: <http://publications.europa.eu/ontology/cdm#>
PREFIX dstype: <http://publications.europa.eu/resource/authority/dataset-type/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT * WHERE
# Only Authority tables and thesaurus works will target BARTOC.org
{
values ?type {
<http://publications.europa.eu/resource/authority/dataset-type/NAL>
<http://publications.europa.eu/resource/authority/dataset-type/THESAURUS>
}
# As the system is not capable to work with multiple distributions,
# SKOS CORE will be the only one listed
values ?manifestation_type {
"SKOS_CORE"^^<http://www.w3.org/2001/XMLSchema#string>
}
?complexWork owl:sameAs ?sameAsWork .
?complexWork a cdm:evolutive_work .
?complexWork cdm:work_dataset_has_type_concept_type_dataset ?type .
Optional {
?complexWork cdm:work_id ?work_id.
}
?expressionCellarId cdm:expression_belongs_to_work ?complexWork .
?manifestationCellarId cdm:manifestation_manifests_expression ?expressionCellarId .
?manifestationCellarId cdm:manifestation_type ?manifestation_type .
# standard fields from CDM
?complexWork cdm:work_title ?title .
?complexWork cdm:work_date_creation ?issued .
?complexWork cdm:work_dataset_description_editorial ?description .
# Multiple languages are available in BARTOC
# but it was not possible to import more than one
BIND("English" as ?s_lang )
# Multiple formats are available in BARTOC
# but it is not possible to import more than one
BIND("SKOS" as ?formats ) # To be replaced with generated field
# Specific adjustments to comply with BARTOC requirements
BIND(REPLACE(STR(?manifestationCellarId ),"(^.*[\\/#])(.*)$","$2") as ?guid)
BIND(REPLACE(STR(?type),"(^.*[\\/#])(.*)$","$2") as ?s1_type)
BIND(REPLACE(STR(?s1_type),"NAL","name authority list") as ?s2_type )
BIND(REPLACE(STR(?s2_type),"THESAURUS","thesaurus") as ?simple_type )
BIND(CONCAT(?work_title, " ", ?simple_type ) as ?alt_title )
}
order by ?sameAsWork