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