updated enrichment query for DIME with AAT matching file

master
Alessia Bardi 1 year ago
parent 6af83df368
commit cd09d515a3

@ -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 .
}
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 ?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#>
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 .
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_derived_subject ?derivedSubject .
?derivedSubject skos:prefLabel ?label .
{
?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 .
}
};

Loading…
Cancel
Save