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 c9c84b5..a3bf02b 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 @@ -3,198 +3,49 @@ PREFIX rdf: PREFIX rdfs: INSERT { GRAPH { - ?s aocat:has_temporal_coverage . - rdf:type . - rdfs:label "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_temporal_coverage ?tc . + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:has_spatial_coverage ?spatialRegion . } } }; -PREFIX aocat: -PREFIX skos: -PREFIX ariadneplus: - -INSERT { - GRAPH { - ?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 . - } -} -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 . - 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: - +PREFIX rdfs: INSERT { GRAPH { - ?s aocat:has_native_subject ?ns . + ?spatialRegion aocat:has_place_name "Name not provided" . } } -USING WHERE { - ?s aocat:is_about ?about . - ?about aocat:has_type ?ns . - ?ns rdf:type aocat:AO_Concept . + GRAPH { + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:has_spatial_coverage ?spatialRegion . + MINUS { + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:has_spatial_coverage ?spatialRegion . + ?spatialRegion aocat:has_place_name ?placeName + } + } }; PREFIX aocat: PREFIX rdf: PREFIX skos: - INSERT { GRAPH { - ?s aocat:has_native_subject . - skos:prefLabel "Not provided" . + ?s aocat:has_native_subject . + skos:prefLabel "Not provided" . } } WHERE { @@ -208,61 +59,127 @@ WHERE { }; PREFIX aocat: +PREFIX skos: +INSERT { + GRAPH { + ?s aocat:has_type . + skos:prefLabel "provided record" . + } +} +WHERE { + GRAPH { + ?s rdf:type aocat:AO_Individual_Data_Resource . + MINUS { + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:has_type . + } + } +}; + +PREFIX aocat: +PREFIX skos: PREFIX rdf: PREFIX rdfs: INSERT { GRAPH { - ?s aocat:has_spatial_coverage . - rdf:type . - rdfs:label "Place not provided" . - aocat:has_place_name "Place 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 . + ?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 rdf: +PREFIX rdfs: +INSERT { + GRAPH { + ?s aocat:has_owner . + 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_owner ?agent . + } + } }; PREFIX aocat: PREFIX rdf: INSERT { GRAPH { - ?spatialRegion aocat:has_place_name "Place name not provided" . + ?s aocat:has_access_rights "Not provided" . } } WHERE { GRAPH { - ?s rdf:type aocat:AO_Individual_Data_Resource . - ?s aocat:has_spatial_coverage ?spatialRegion . + ?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 . + ?s aocat:has_access_rights ?ar . } } }; - - -PREFIX aocat: -PREFIX rdf: - -INSERT { - GRAPH { - ?s aocat:has_temporal_coverage ?t . +PREFIX skos: + PREFIX aocat: + PREFIX time: + INSERT { + GRAPH { + ?temporal aocat:from ?temporalFrom . + ?temporal aocat:until ?temporalUntil . + } + } + WHERE { + GRAPH { + ?temporal aocat:has_native_period ?native_period . + ?temporal aocat:from ?temporalFrom . + ?temporal aocat:until ?temporalUntil . } -} -USING -WHERE { - ?s aocat:is_about ?about . - ?about aocat:has_time_interval ?t . - ?t rdf:type aocat:AO_Temporal_Region . -}; + }; + + PREFIX skos: + PREFIX aocat: + PREFIX time: + INSERT { + GRAPH { + ?temporal aocat:has_period ?periodO . + ?temporal aocat:from ?temporalFrom . + ?temporal aocat:until ?temporalUntil . + } + } + WHERE { + GRAPH { + ?temporal aocat:has_native_period ?native_period . + ?native_period skos:prefLabel ?native_label . + optional { + GRAPH { + ?periodO skos:altLabel ?native_label . + ?periodO skos:inScheme . + ?periodO time:intervalStartedBy ?intervalStartedBy . + ?intervalStartedBy skos:prefLabel ?temporalFrom . + ?periodO time:intervalFinishedBy ?intervalFinishedBy . + ?intervalFinishedBy skos:prefLabel ?temporalUntil . + } + } + } + }; PREFIX aocat: PREFIX skos: @@ -294,31 +211,4 @@ WHERE { ?record aocat:has_native_subject ?native_subject . ?native_subject skos:narrowMatch ?aat . } -}; - - PREFIX skos: - PREFIX aocat: - PREFIX time: - INSERT { - GRAPH { - ?temporal aocat:has_period ?periodO . - ?temporal aocat:from ?temporalFrom . - ?temporal aocat:until ?temporalUntil . - } - } - WHERE { - GRAPH { - ?temporal aocat:has_native_period ?native_period . - ?native_period skos:prefLabel ?native_label . - optional { - GRAPH { - ?periodO skos:altLabel ?native_label . - ?periodO skos:inScheme . - ?periodO time:intervalStartedBy ?intervalStartedBy . - ?intervalStartedBy skos:prefLabel ?temporalFrom . - ?periodO time:intervalFinishedBy ?intervalFinishedBy . - ?intervalFinishedBy skos:prefLabel ?temporalUntil . - } - } - } - }; \ No newline at end of file +}; \ No newline at end of file