added has_native_subject insert with uppercase; added aatplus graph creation

This commit is contained in:
Enrico Ottonello 2020-09-29 23:13:07 +02:00
parent e36e1a0080
commit e5d0fa5254
1 changed files with 49 additions and 0 deletions

View File

@ -102,6 +102,55 @@ INSERT {
} }
} }
}; };
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::hnm::hnmad> {
?s aocat:has_native_subject ?nsup .
}
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::hnm::hnmad>
WHERE {
?s aocat:is_about ?about .
?about aocat:has_type ?ns .
?ns rdf:type aocat:AO_Concept .
bind (IRI(concat( "https://ariadne-infrastructure.eu/aocat/Concept/HNM/", ucase(strafter(str(?ns),"HNM/")))) as ?nsup)
};
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::hnm::aatplus> {
?record aocat:has_derived_subject ?aat .
}
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::hnm::aat>
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::hnm::hnmad>
WHERE {
{
?record aocat:has_native_subject ?native_subject .
?native_subject skos:exactMatch ?aat .
}
union
{
?record aocat:has_native_subject ?native_subject .
?native_subject skos:broadMatch ?aat .
}
union
{
?record aocat:has_native_subject ?native_subject .
?native_subject skos:closeMatch ?aat .
}
union
{
?record aocat:has_native_subject ?native_subject .
?native_subject skos:narrowMatch ?aat .
}
};
PREFIX dcterms: <http://purl.org/dc/terms/> PREFIX dcterms: <http://purl.org/dc/terms/>
INSERT { INSERT {
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::hnm::periodo> { GRAPH <https://ariadne-infrastructure.eu/ariadneplus::hnm::periodo> {