updated enrichment query for DIME with AAT matching file

This commit is contained in:
Alessia Bardi 2023-01-24 18:50:43 +01:00
parent 6af83df368
commit cd09d515a3
1 changed files with 41 additions and 13 deletions

View File

@ -142,28 +142,56 @@ WHERE {
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::aarhusdime::aatplus> {
?record aocat:has_derived_subject ?aat .
}
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::aarhusdime::oai>
WHERE {
?record aocat:has_derived_subject ?aat .
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::aarhusdime::aat> {
?derivedSubject skos:prefLabel ?label .
}
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::aarhusdime::oai>
WHERE {
?record aocat:has_derived_subject ?derivedSubject .
?record aocat:has_derived_subject ?aat .
?derivedSubject skos:prefLabel ?label .
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::aarhusdime::aatplus> {
?record aocat:has_derived_subject ?aat .
}
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::aarhusdime::aat>
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::aarhusdime::oai>
WHERE {
{
?record aocat:has_native_subject ?native_subject .
?x owl:sameAs ?native_subject .
?x skos:exactMatch ?aat .
}
union
{
?record aocat:has_native_subject ?native_subject .
?x owl:sameAs ?native_subject .
?x skos:broadMatch ?aat .
}
union
{
?record aocat:has_native_subject ?native_subject .
?x owl:sameAs ?native_subject .
?x skos:closeMatch ?aat .
}
union
{
?record aocat:has_native_subject ?native_subject .
?x owl:sameAs ?native_subject .
?x skos:narrowMatch ?aat .
}
};