AAT template with uppercase case
This commit is contained in:
parent
2a2dd374fa
commit
beef9b1506
|
@ -29,4 +29,46 @@ WHERE {
|
|||
?record aocat:has_native_subject ?native_subject .
|
||||
?native_subject skos:narrowMatch ?aat .
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
#if you need to uppercase (i.e. uppercase in aat data)
|
||||
|
||||
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::<PROVIDER>::aatplus> {
|
||||
?record aocat:has_derived_subject ?aat_subject .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::<PROVIDER>::aat>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::<PROVIDER>::<COLL>>
|
||||
WHERE {
|
||||
{
|
||||
?record aocat:has_native_subject ?native_subject .
|
||||
?aat_native_subject skos:exactMatch ?aat_subject .
|
||||
bind (IRI(concat( "https://ariadne-infrastructure.eu/aocat/Concept/<PROVIDER>/", ucase(strafter(str(?native_subject),"<PROVIDER>/")))) as ?uppercase_native_subject)
|
||||
filter(?uppercase_native_subject=?aat_native_subject)
|
||||
}
|
||||
union
|
||||
{
|
||||
?record aocat:has_native_subject ?native_subject .
|
||||
?aat_native_subject skos:broadMatch ?aat_subject .
|
||||
bind (IRI(concat( "https://ariadne-infrastructure.eu/aocat/Concept/<PROVIDER>/", ucase(strafter(str(?native_subject),"<PROVIDER>/")))) as ?uppercase_native_subject)
|
||||
filter(?uppercase_native_subject=?aat_native_subject)
|
||||
}
|
||||
union
|
||||
{
|
||||
?record aocat:has_native_subject ?native_subject .
|
||||
?aat_native_subject skos:closeMatch ?aat_subject .
|
||||
bind (IRI(concat( "https://ariadne-infrastructure.eu/aocat/Concept/<PROVIDER>/", ucase(strafter(str(?native_subject),"<PROVIDER>/")))) as ?uppercase_native_subject)
|
||||
filter(?uppercase_native_subject=?aat_native_subject)
|
||||
}
|
||||
union
|
||||
{
|
||||
?record aocat:has_native_subject ?native_subject .
|
||||
?aat_native_subject skos:narrowMatch ?aat_subject .
|
||||
bind (IRI(concat( "https://ariadne-infrastructure.eu/aocat/Concept/<PROVIDER>/", ucase(strafter(str(?native_subject),"<PROVIDER>/")))) as ?uppercase_native_subject)
|
||||
filter(?uppercase_native_subject=?aat_native_subject)
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue