-
Notifications
You must be signed in to change notification settings - Fork 1
/
sample.sparql
28 lines (26 loc) · 1.25 KB
/
sample.sparql
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
PREFIX jolux: <http://data.legilux.public.lu/resource/ontology/jolux#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
select ?dateApplicability ?rs ?droit ?title {
{
select (str(?dateApplicabilityNode) as ?dateApplicability) ?lang ?consolidationAbstract {
values (?startDate ?endDate ?lang) {
('2023-01-01' '2023-12-31' <http://publications.europa.eu/resource/authority/language/FRA> )
}
?consolidation a jolux:Consolidation ;
jolux:dateApplicability ?dateApplicabilityNode ;
jolux:isMemberOf ?consolidationAbstract .
filter(xsd:date(?dateApplicabilityNode) >= xsd:date(?startDate) && xsd:date(?dateApplicabilityNode) <= xsd:date(?endDate))
}
}
?consolidationAbstract jolux:classifiedByTaxonomyEntry/skos:notation ?rsNode .
optional {
?consolidationAbstract jolux:isRealizedBy ?expression .
?expression jolux:language ?lang ;
jolux:title ?title .
}
#filter(datatype(?rsNode) = <https://fedlex.data.admin.ch/vocabulary/notation-type/id-systematique>)
bind(str(?rsNode) as ?rs)
bind(if(strstarts(?rs, '0.'), 'International', 'Interne') as ?droit)
}
order by ?dateApplicability