added periodo matching

This commit is contained in:
Enrico Ottonello 2022-01-26 19:46:01 +01:00
parent 5823916782
commit b2a54f4204
1 changed files with 26 additions and 1 deletions

View File

@ -323,4 +323,29 @@ WHERE {
bind (IRI(concat( "https://ariadne-infrastructure.eu/aocat/Concept/INRAP/", ucase(strafter(str(?native_subject),"Inrap/")))) as ?uppercase_native_subject)
filter(?uppercase_native_subject=?aat_native_subject)
}
};
};
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX time: <http://www.w3.org/2006/time#>
PREFIX dcterms: <http://purl.org/dc/terms/>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::dolia::periodoplus> {
?temporal aocat:has_period ?periodO .
?temporal aocat:from ?temporalFrom .
?temporal aocat:until ?temporalUntil .
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::dolia::test> {
?temporal aocat:has_native_period ?native_period .
?native_period skos:prefLabel ?p_label .
optional {
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::dolia::periodo> {
?periodO skos:altLabel ?p_label .
?periodO time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom .
?periodO time:intervalFinishedBy / time:hasDateTimeDescription / time:year ?temporalUntil .
}
}
}
};