From 4f3a329bae2528f9699c40f3707a537ea08f589f Mon Sep 17 00:00:00 2001 From: Alessia Bardi Date: Wed, 31 May 2023 11:20:06 +0200 Subject: [PATCH] separete query for different fields to be inherited from CENIEH collection and updated date --- .../ordered_sparql_insert_cenieh_cir.sparql | 81 +++++++++++++++++-- 1 file changed, 74 insertions(+), 7 deletions(-) diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/CENIEH/ordered_sparql_insert_cenieh_cir.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/CENIEH/ordered_sparql_insert_cenieh_cir.sparql index 1fccd29..e03a8b1 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/CENIEH/ordered_sparql_insert_cenieh_cir.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/CENIEH/ordered_sparql_insert_cenieh_cir.sparql @@ -26,7 +26,7 @@ PREFIX aocat: INSERT { GRAPH { ?s aocat:was_issued "2022-01-24"^^xsd:dateTime . - ?s aocat:was_modified "2022-01-24"^^xsd:dateTime . + ?s aocat:was_modified "2023-05-30"^^xsd:dateTime . } } USING @@ -147,11 +147,28 @@ PREFIX aocat: ?s rdf:type . MINUS { ?s rdf:type . - ?s aocat:has_original_id ?tc . + ?s aocat:has_original_id ?id . } } }; + PREFIX aocat: + PREFIX rdf: + INSERT { + GRAPH { + ?s aocat:has_original_id "not provided" . + } + } + WHERE { + GRAPH { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:has_original_id ?id . + } + } + }; + PREFIX aocat: PREFIX skos: @@ -219,18 +236,68 @@ WHERE { INSERT { GRAPH { ?record aocat:has_ARIADNE_subject ?archeologicalResourceType . - ?record aocat:has_owner ?owner . - ?record aocat:has_responsible ?legalResponsible . - ?record aocat:has_contributor ?contributor . } } USING WHERE { ?record aocat:is_part_of ?collection . ?collection aocat:has_ARIADNE_subject ?archeologicalResourceType . - ?collection aocat:has_owner ?owner . - ?collection aocat:has_responsible ?legalResponsible . + MINUS { + ?record aocat:has_ARIADNE_subject ?x + } + }; + + PREFIX aocat: + PREFIX skos: + PREFIX ariadneplus: + INSERT { + GRAPH { + ?record aocat:has_owner ?owner . + } + } + USING + WHERE { + ?record aocat:is_part_of ?collection . + ?collection aocat:has_owner ?owner . + MINUS { + ?record aocat:has_owner ?x + } + }; + + PREFIX aocat: + PREFIX skos: + PREFIX ariadneplus: + + INSERT { + GRAPH { + ?record aocat:has_responsible ?legalResponsible . + } + } + USING + WHERE { + ?record aocat:is_part_of ?collection . + ?collection aocat:has_responsible ?legalResponsible . + MINUS { + ?record aocat:has_responsible ?x + } + }; + + PREFIX aocat: + PREFIX skos: + PREFIX ariadneplus: + + INSERT { + GRAPH { + ?record aocat:has_contributor ?contributor . + } + } + USING + WHERE { + ?record aocat:is_part_of ?collection . ?collection aocat:has_contributor ?contributor . + MINUS { + ?record aocat:has_contributor ?x + } }; PREFIX aocat: