enrichment queries for THANADOS

centroids
Alessia Bardi 2 years ago
parent b55c9f352f
commit 600f80317c

@ -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 .
};

Loading…
Cancel
Save