another useful template for AAT enrichment
This commit is contained in:
parent
ae56dc75fa
commit
29aae31c95
|
@ -73,6 +73,52 @@ USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::<PROVIDER>:
|
|||
}
|
||||
};
|
||||
|
||||
#if you need to match on the skos:prefLabel, ignoring language
|
||||
|
||||
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 .
|
||||
?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 .
|
||||
?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 .
|
||||
?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 .
|
||||
?native_subject skos:prefLabel ?nativeLabel .
|
||||
?match_subject skos:prefLabel ?matchedLabel .
|
||||
?match_subject skos:narrowMatch ?aat_subject .
|
||||
filter(str(?nativeLabel) = str(?matchedLabel))
|
||||
}
|
||||
};
|
||||
|
||||
#if you need to copy triples from the data graph to the aat/aatplus graph:
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
|
|
Loading…
Reference in New Issue