fixed AAT enrichment for UKPool
This commit is contained in:
parent
156ee92498
commit
df1fd92628
|
@ -53,45 +53,50 @@ WHERE {
|
||||||
?collection aocat:has_access_rights ?accessRights .
|
?collection aocat:has_access_rights ?accessRights .
|
||||||
};
|
};
|
||||||
|
|
||||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||||
|
|
||||||
INSERT {
|
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
|
||||||
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::oeaw::aatplus> {
|
INSERT {
|
||||||
?record aocat:has_derived_subject ?aat_subject .
|
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::oeaw::aatplus> {
|
||||||
}
|
?record aocat:has_derived_subject ?aat_subject .
|
||||||
}
|
}
|
||||||
|
}
|
||||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::oeaw::aat>
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::oeaw::aat>
|
||||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::oeaw::sites>
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::oeaw::sites>
|
||||||
WHERE {
|
WHERE {
|
||||||
{
|
{
|
||||||
?record aocat:has_native_subject ?native_subject .
|
?record aocat:has_native_subject ?native_subject .
|
||||||
?aat_native_subject skos:exactMatch ?aat_subject .
|
?native_subject skos:prefLabel ?nativeLabel .
|
||||||
bind (IRI(concat( "https://ariadne-infrastructure.eu/aocat/Concept/OEAW/", ucase(strafter(str(?native_subject),"OEAW/")))) as ?uppercase_native_subject)
|
?match_subject skos:prefLabel ?matchedLabel .
|
||||||
filter(?uppercase_native_subject=?aat_native_subject)
|
?match_subject skos:exactMatch ?aat_subject .
|
||||||
|
filter(str(?nativeLabel) = str(?matchedLabel))
|
||||||
}
|
}
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
?record aocat:has_native_subject ?native_subject .
|
?record aocat:has_native_subject ?native_subject .
|
||||||
?aat_native_subject skos:broadMatch ?aat_subject .
|
?native_subject skos:prefLabel ?nativeLabel .
|
||||||
bind (IRI(concat( "https://ariadne-infrastructure.eu/aocat/Concept/OEAW/", ucase(strafter(str(?native_subject),"OEAW/")))) as ?uppercase_native_subject)
|
?match_subject skos:prefLabel ?matchedLabel .
|
||||||
filter(?uppercase_native_subject=?aat_native_subject)
|
?match_subject skos:broadMatch ?aat_subject .
|
||||||
|
filter(str(?nativeLabel) = str(?matchedLabel))
|
||||||
}
|
}
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
?record aocat:has_native_subject ?native_subject .
|
?record aocat:has_native_subject ?native_subject .
|
||||||
?aat_native_subject skos:closeMatch ?aat_subject .
|
?native_subject skos:prefLabel ?nativeLabel .
|
||||||
bind (IRI(concat( "https://ariadne-infrastructure.eu/aocat/Concept/OEAW/", ucase(strafter(str(?native_subject),"OEAW/")))) as ?uppercase_native_subject)
|
?match_subject skos:prefLabel ?matchedLabel .
|
||||||
filter(?uppercase_native_subject=?aat_native_subject)
|
?match_subject skos:closeMatch ?aat_subject .
|
||||||
|
filter(str(?nativeLabel) = str(?matchedLabel))
|
||||||
}
|
}
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
?record aocat:has_native_subject ?native_subject .
|
?record aocat:has_native_subject ?native_subject .
|
||||||
?aat_native_subject skos:narrowMatch ?aat_subject .
|
?native_subject skos:prefLabel ?nativeLabel .
|
||||||
bind (IRI(concat( "https://ariadne-infrastructure.eu/aocat/Concept/OEAW/", ucase(strafter(str(?native_subject),"OEAW/")))) as ?uppercase_native_subject)
|
?match_subject skos:prefLabel ?matchedLabel .
|
||||||
filter(?uppercase_native_subject=?aat_native_subject)
|
?match_subject skos:narrowMatch ?aat_subject .
|
||||||
|
filter(str(?nativeLabel) = str(?matchedLabel))
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
PREFIX dcterms: <http://purl.org/dc/terms/>
|
PREFIX dcterms: <http://purl.org/dc/terms/>
|
||||||
INSERT {
|
INSERT {
|
||||||
|
|
Loading…
Reference in New Issue