enrichment queries for THANADOS

This commit is contained in:
Alessia Bardi 2022-06-16 20:08:10 +02:00
parent b55c9f352f
commit 600f80317c
1 changed files with 66 additions and 0 deletions

View File

@ -317,6 +317,72 @@ INSERT {
}
};
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::thanados::aatplus> {
?s aocat:has_derived_subject ?aat .
}
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::thanados::aat>
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::thanados::api>
WHERE {
{
?s aocat:has_native_subject ?native_subject .
?aatmatch owl:sameAs ?vocuri .
?aatmatch skos:exactMatch ?aat .
bind (IRI(concat( "https://thanados.net/vocabulary/", ucase(strafter(str(?native_subject),"THANADOS/")))) as ?vocuribuilt)
filter(?vocuri=?vocuribuilt)
}
union
{
?s aocat:has_native_subject ?native_subject .
?aatmatch owl:sameAs ?vocuri .
?aatmatch skos:broadMatch ?aat .
bind (IRI(concat( "https://thanados.net/vocabulary/", ucase(strafter(str(?native_subject),"THANADOS/")))) as ?vocuribuilt)
filter(?vocuri=?vocuribuilt)
}
union
{
?s aocat:has_native_subject ?native_subject .
?aatmatch owl:sameAs ?vocuri .
?aatmatch skos:closeMatch ?aat .
bind (IRI(concat( "https://thanados.net/vocabulary/", ucase(strafter(str(?native_subject),"THANADOS/")))) as ?vocuribuilt)
filter(?vocuri=?vocuribuilt)
}
union
{
?s aocat:has_native_subject ?native_subject .
?aatmatch owl:sameAs ?vocuri .
?aatmatch skos:narrowMatch ?aat .
bind (IRI(concat( "https://thanados.net/vocabulary/", ucase(strafter(str(?native_subject),"THANADOS/")))) as ?vocuribuilt)
filter(?vocuri=?vocuribuilt)
}
};
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/>
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::thanados::periodoplus> {
?temporal aocat:from ?temporalFrom .
?temporal aocat:until ?temporalUntil .
}
}
USING <https://ariadne-infrastructure.eu/ariadne/periodo>
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::thanados::api>
WHERE {
?temporal aocat:has_period ?periodO_URI .
?periodO_URI time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom .
?periodO_URI time:intervalFinishedBy / time:hasDateTimeDescription / time:year ?temporalUntil .
};