From 7e2c0d5be80002faecd6672c9bef2a0c655a50e9 Mon Sep 17 00:00:00 2001 From: Alessia Bardi Date: Wed, 18 Jan 2023 19:04:41 +0100 Subject: [PATCH] original id and AAT enrichment for RGK - DAI --- .../DAI/ordered_sparql_insert_afe_rgk.sparql | 55 ++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/DAI/ordered_sparql_insert_afe_rgk.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/DAI/ordered_sparql_insert_afe_rgk.sparql index 11a3441..44d5c7c 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/DAI/ordered_sparql_insert_afe_rgk.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/DAI/ordered_sparql_insert_afe_rgk.sparql @@ -149,6 +149,20 @@ WHERE { } }; +PREFIX aocat: +INSERT { + GRAPH { + ?record aocat:has_original_id ?pid . + } +} +USING +WHERE { + ?record aocat:has_landing_page ?pid . + MINUS { + ?record aocat:has_original_id ?id . + } +}; + PREFIX aocat: PREFIX skos: PREFIX ariadneplus: @@ -206,4 +220,43 @@ PREFIX skos: ?temporal aocat:from ?from . ?temporal aocat:until ?until . } - }; \ No newline at end of file + }; + + PREFIX aocat: + PREFIX skos: + + INSERT { + GRAPH { + ?record aocat:has_derived_subject ?aat_subject . + } + } + USING + USING + WHERE { + { + ?record aocat:has_native_subject ?native_subject . + bind (IRI(concat( "https://ariadne-infrastructure.eu/aocat/Concept/AFE/", ucase(strafter(str(?native_subject),"AFE_RGK/")))) as ?modified_native_subject) + ?modified_native_subject skos:exactMatch ?aat_subject . + } + union + { + ?record aocat:has_native_subject ?native_subject . + bind (IRI(concat( "https://ariadne-infrastructure.eu/aocat/Concept/AFE/", ucase(strafter(str(?native_subject),"AFE_RGK/")))) as ?modified_native_subject) + ?modified_native_subject skos:broadMatch ?aat_subject . + + } + union + { + ?record aocat:has_native_subject ?native_subject . + bind (IRI(concat( "https://ariadne-infrastructure.eu/aocat/Concept/AFE/", ucase(strafter(str(?native_subject),"AFE_RGK/")))) as ?modified_native_subject) + ?modified_native_subject skos:closeMatch ?aat_subject . + + } + union + { + ?record aocat:has_native_subject ?native_subject . + bind (IRI(concat( "https://ariadne-infrastructure.eu/aocat/Concept/AFE/", ucase(strafter(str(?native_subject),"AFE_RGK/")))) as ?modified_native_subject) + ?modified_native_subject skos:narrowMatch ?aat_subject . + } + }; +