fix periodo matching with upper case

This commit is contained in:
Enrico Ottonello 2021-02-11 11:53:55 +01:00
parent 512a731527
commit 3df2befb52
1 changed files with 12 additions and 9 deletions

View File

@ -128,14 +128,17 @@ INSERT {
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::niam::amb> {
?temporal aocat:has_native_period ?native_period .
?native_period skos:prefLabel ?native_label .
optional {
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::niam::periodo> {
?periodO skos:altLabel ?native_label .
?periodO time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom .
?periodO time:intervalFinishedBy / time:hasDateTimeDescription / time:year ?temporalUntil .
}
?temporal aocat:has_native_period ?native_period .
?native_period skos:prefLabel ?t_label .
optional {
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::niam::periodo> {
?periodO skos:altLabel ?p_label .
?periodO time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom .
?periodO time:intervalFinishedBy / time:hasDateTimeDescription / time:year ?temporalUntil .
}
}
bind(ucase(?t_label) as ?u_t_label)
bind(ucase(?p_label) as ?u_p_label)
filter(?u_t_label=?u_p_label)
}
}
};