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 .
+ }
+ };
+