From 98da97643f806ebe20afef1bc8249d616d379036 Mon Sep 17 00:00:00 2001 From: Alessia Bardi Date: Thu, 23 Mar 2023 11:03:59 +0100 Subject: [PATCH] IAA: enrich with Getty for collection --- .../IAA/ordered_sparql_insert_IAA_coll.sparql | 34 ++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/IAA/ordered_sparql_insert_IAA_coll.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/IAA/ordered_sparql_insert_IAA_coll.sparql index 23c3344..41ae7bc 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/IAA/ordered_sparql_insert_IAA_coll.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/IAA/ordered_sparql_insert_IAA_coll.sparql @@ -47,4 +47,36 @@ PREFIX aocat: ?temporal aocat:has_native_period ?nativePeriod . ?nativePeriod rdfs:label ?periodLabel . } - }; \ No newline at end of file + }; + + PREFIX aocat: + PREFIX skos: + PREFIX rdf: + INSERT { + GRAPH { + ?record aocat:has_derived_subject ?aat . + } + } + USING + USING + 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 . + } + }; \ No newline at end of file