diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_276.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_276.sparql index f9c6372..bc32c07 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_276.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_276.sparql @@ -25,29 +25,153 @@ PREFIX ariadneplus: INSERT { GRAPH { - ?record aocat:was_issued ?issued . - ?record aocat:was_modified ?modified . + ?record aocat:has_ARIADNE_subject ?ar . + } +} +USING +WHERE { + ?record aocat:is_part_of ?collection . + + ?collection aocat:has_ARIADNE_subject ?ar . + MINUS{ + ?record aocat:has_ARIADNE_subject ?x . + } +}; + +PREFIX aocat: +PREFIX skos: +PREFIX ariadneplus: + +INSERT { + GRAPH { + ?record aocat:has_access_rights ?ar . + } +} +USING +WHERE { + ?record aocat:is_part_of ?collection . + + ?collection aocat:has_access_rights ?ar . + MINUS{ + ?record aocat:has_access_rights ?x . + } +}; + +PREFIX aocat: +PREFIX skos: +PREFIX ariadneplus: + +INSERT { + GRAPH { + ?record aocat:has_publisher ?pub . + } +} +USING +WHERE { + ?record aocat:is_part_of ?collection . + + ?collection aocat:has_publisher ?pub . + MINUS{ + ?record aocat:has_publisher ?x . + } +}; + +PREFIX aocat: +PREFIX skos: +PREFIX ariadneplus: + +INSERT { + GRAPH { + ?record aocat:has_owner ?own . + } +} +USING +WHERE { + ?record aocat:is_part_of ?collection . + + ?collection aocat:has_owner ?own . + MINUS{ + ?record aocat:has_owner ?x . + } +}; + +PREFIX aocat: +PREFIX skos: +PREFIX ariadneplus: + +INSERT { + GRAPH { + ?record aocat:has_responsible ?resp . + } +} +USING +WHERE { + ?record aocat:is_part_of ?collection . + + ?collection aocat:has_responsible ?resp . + MINUS{ + ?record aocat:has_responsible ?x . + } +}; + +PREFIX aocat: +PREFIX skos: +PREFIX ariadneplus: + +INSERT { + GRAPH { ?record aocat:has_contributor ?contributor . - ?record aocat:has_responsible ?legalResponsible . - ?record aocat:has_owner ?owner . - ?record aocat:has_publisher ?publisher . - ?record aocat:has_access_rights ?accessRights . - ?record aocat:has_ARIADNE_subject ?archeologicalResourceType . + } +} +USING +WHERE { + ?record aocat:is_part_of ?collection . + + ?collection aocat:has_contributor ?contributor . + MINUS{ + ?record aocat:has_contributor ?x . + } +}; + +PREFIX aocat: +PREFIX skos: +PREFIX ariadneplus: + +INSERT { + GRAPH { + ?record aocat:was_issued ?issued . + } } USING WHERE { ?record aocat:is_part_of ?collection . ?collection aocat:was_issued ?issued . - ?collection aocat:was_modified ?modified . - ?collection aocat:has_contributor ?contributor . - ?collection aocat:has_responsible ?legalResponsible . - ?collection aocat:has_owner ?owner . - ?collection aocat:has_publisher ?publisher . - ?collection aocat:has_access_rights ?accessRights . - ?collection aocat:has_ARIADNE_subject ?archeologicalResourceType . + MINUS{ + ?record aocat:was_issued ?x . + } }; +PREFIX aocat: +PREFIX skos: +PREFIX ariadneplus: + +INSERT { + GRAPH { + ?record aocat:was_modified ?modified . + } +} +USING +WHERE { + ?record aocat:is_part_of ?collection . + + ?collection aocat:was_modified ?modified . + MINUS{ + ?record aocat:was_modified ?x . + } +}; + + PREFIX aocat: PREFIX rdf: @@ -100,7 +224,6 @@ WHERE { MINUS { ?s rdf:type aocat:AO_Individual_Data_Resource . ?s aocat:has_spatial_coverage ?spatialRegion . - ?spatialRegion aocat:has_place_name ?placeName . } } };