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 { WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::niam::amb> { GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::niam::amb> {
?temporal aocat:has_native_period ?native_period . ?temporal aocat:has_native_period ?native_period .
?native_period skos:prefLabel ?native_label . ?native_period skos:prefLabel ?t_label .
optional { optional {
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::niam::periodo> { GRAPH <https://ariadne-infrastructure.eu/ariadneplus::niam::periodo> {
?periodO skos:altLabel ?native_label . ?periodO skos:altLabel ?p_label .
?periodO time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom . ?periodO time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom .
?periodO time:intervalFinishedBy / time:hasDateTimeDescription / time:year ?temporalUntil . ?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)
} }
}
}; };