diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_1093.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_1093.sparql index f6fa2a6..62fe6fe 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_1093.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_1093.sparql @@ -4,36 +4,54 @@ PREFIX rdf: PREFIX rdfs: INSERT { GRAPH { - ?collection aocat:has_ARIADNE_subject ?archeologicalResourceType . + aocat:has_ARIADNE_subject ?archeologicalResourceType . ?archeologicalResourceType skos:prefLabel ?archeologicalResourceTypeName . ?archeologicalResourceType rdfs:label ?archeologicalResourceTypeName . } } WHERE { - ?collection rdf:type . - ?collection aocat:has_ARIADNE_subject ?archeologicalResourceType . +GRAPH { + aocat:has_ARIADNE_subject ?archeologicalResourceType . ?archeologicalResourceType skos:prefLabel ?archeologicalResourceTypeName . - ?collection aocat:has_original_id "https://archaeologydataservice.ac.uk/library/" . +} }; PREFIX aocat: -PREFIX skos: PREFIX rdf: PREFIX rdfs: INSERT { GRAPH { - ?s aocat:has_responsible . - rdf:type . - rdfs:label "Not provided" . - aocat:has_name "Not provided" . + ?s aocat:has_spatial_coverage . + rdf:type . + rdfs:label "Name not provided" . + aocat:has_place_name "Name not provided" . } } WHERE { GRAPH { - ?s rdf:type . + ?s rdf:type aocat:AO_Individual_Data_Resource . MINUS { - ?s rdf:type . - ?s aocat:has_responsible ?agent . + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:has_spatial_coverage ?spatialRegion . + } + } +}; + +PREFIX aocat: +PREFIX rdf: +PREFIX skos: +INSERT { + GRAPH { + ?s aocat:has_native_subject . + skos:prefLabel "Not provided" . + } +} +WHERE { + GRAPH { + ?s rdf:type aocat:AO_Individual_Data_Resource . + MINUS { + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:has_native_subject ?ns . } } }; @@ -61,29 +79,112 @@ INSERT { }; PREFIX aocat: +PREFIX skos: PREFIX rdf: PREFIX rdfs: INSERT { GRAPH { - ?s aocat:has_temporal_coverage . - rdf:type . - rdfs:label "Not provided" . - + ?s aocat:has_creator . + rdf:type . + rdfs:label "Not provided" . + aocat:has_name "Not provided" . } } WHERE { GRAPH { - ?s rdf:type . + ?s rdf:type aocat:AO_Individual_Data_Resource . MINUS { - ?s rdf:type . - ?s aocat:has_temporal_coverage ?tc . + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:has_creator ?creator . } } }; PREFIX aocat: -PREFIX rdf: -PREFIX skos: +PREFIX skos: +PREFIX rdf: +PREFIX rdfs: +INSERT { + GRAPH { + ?s aocat:has_contributor . + rdf:type . + rdfs:label "Not provided" . + aocat:has_name "Not provided" . + } + } + WHERE { + GRAPH { + ?s rdf:type aocat:AO_Individual_Data_Resource . + MINUS { + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:has_contributor ?agent . + } + } +}; + +PREFIX aocat: +PREFIX skos: +PREFIX rdf: +PREFIX rdfs: +INSERT { + GRAPH { + ?s aocat:has_responsible . + rdf:type . + rdfs:label "Not provided" . + aocat:has_name "Not provided" . + } +} +WHERE { + GRAPH { + ?s rdf:type aocat:AO_Individual_Data_Resource . + MINUS { + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:has_responsible ?agent . + } + } +}; + +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 . + MINUS{ + ?record aocat:was_issued ?issuedRecord . + } +}; + +PREFIX aocat: +PREFIX skos: +PREFIX ariadneplus: + +INSERT { + GRAPH { + ?record aocat:was_modified ?created . + + } +} +USING +WHERE { + ?record rdf:type aocat:AO_Individual_Data_Resource . + ?record aocat:was_created_on ?created . + MINUS{ + ?record rdf:type aocat:AO_Individual_Data_Resource . + ?record aocat:was_modified ?modified . + } +}; + +PREFIX aocat: +PREFIX skos: INSERT { GRAPH { ?s aocat:has_type . @@ -100,123 +201,6 @@ WHERE { } }; -PREFIX aocat: -PREFIX skos: -PREFIX ariadneplus: - -INSERT { - GRAPH { - ?record aocat:was_issued ?issued . - ?record aocat:was_modified ?modified . - ?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: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 . -}; - -PREFIX aocat: -PREFIX skos: -PREFIX rdf: -PREFIX rdfs: -INSERT { - GRAPH { - ?s aocat:has_creator . - aocat:has_name "Not provided" . - } -} -WHERE { - GRAPH { - ?s rdf:type aocat:AO_Individual_Data_Resource . - MINUS { - ?s rdf:type aocat:AO_Individual_Data_Resource . - ?s aocat:has_creator ?creator . - } - } -}; - -PREFIX aocat: -PREFIX rdf: -INSERT { - GRAPH { - ?s aocat:has_native_subject ?ns . - } -} -USING -WHERE { - ?s aocat:is_about ?about . - ?about aocat:has_type ?ns . - ?ns rdf:type aocat:AO_Concept . -}; - -PREFIX aocat: -PREFIX rdf: -PREFIX skos: -INSERT { - GRAPH { - ?s aocat:has_native_subject . - skos:prefLabel "Not provided" . - } -} -WHERE { - GRAPH { - ?s rdf:type aocat:AO_Individual_Data_Resource . - MINUS { - ?s rdf:type aocat:AO_Individual_Data_Resource . - ?s aocat:has_native_subject ?ns . - } - } -}; - - PREFIX aocat: - PREFIX rdf: - INSERT { - GRAPH { - ?s aocat:has_temporal_coverage ?t . - } - } - USING - WHERE { - ?s aocat:is_about ?about . - ?about aocat:has_time_interval ?t . - ?t rdf:type aocat:AO_Temporal_Region . - }; - -PREFIX aocat: -PREFIX rdf: -PREFIX rdfs: -INSERT { - GRAPH { - ?s aocat:has_spatial_coverage . - rdf:type . - rdfs:label "Name not provided" . - aocat:has_place_name "Name not provided" . - } -} -WHERE { - GRAPH { - ?s rdf:type aocat:AO_Individual_Data_Resource . - MINUS { - ?s rdf:type aocat:AO_Individual_Data_Resource . - ?s aocat:has_spatial_coverage ?spatialRegion . - ?spatialRegion aocat:has_place_name ?placeName . - } - } -}; PREFIX aocat: PREFIX skos: