diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_coflein.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_coflein.sparql index 261ee60..28d56f8 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_coflein.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_coflein.sparql @@ -1,5 +1,16 @@ -INSERT { GRAPH { ?record aocat:is_part_of . } } -WHERE { ?record rdf:type aocat:AO_Individual_Data_Resource. }; +PREFIX aocat: +PREFIX rdf: +PREFIX skos: +INSERT { GRAPH { ?record aocat:is_part_of . } } +WHERE { + GRAPH { + ?record rdf:type aocat:AO_Individual_Data_Resource. + } +}; + +PREFIX aocat: +PREFIX rdf: +PREFIX skos: INSERT { GRAPH { ?s aocat:has_native_subject . @@ -10,70 +21,108 @@ WHERE { GRAPH { ?s rdf:type aocat:AO_Individual_Data_Resource. MINUS { - ?s rdf:type aocat:AO_Individual_Data_Resource; - aocat:has_native_subject ?ns. + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:has_native_subject ?ns. } } }; +PREFIX aocat: +PREFIX rdf: INSERT { GRAPH { ?s aocat:has_title "Title not provided". } } WHERE { GRAPH { ?s rdf:type aocat:AO_Individual_Data_Resource. MINUS { - ?s rdf:type aocat:AO_Individual_Data_Resource; - aocat:has_title ?title. + ?s rdf:type aocat:AO_Individual_Data_Resource. + ?s aocat:has_title ?title. } } }; +PREFIX aocat: +PREFIX rdf: INSERT { GRAPH { ?record aocat:was_modified ?date. } } WHERE { +GRAPH { ?record aocat:is_part_of ?collection. ?collection aocat:was_modified ?date. MINUS { ?record aocat:was_modified ?x. } + } }; +PREFIX aocat: +PREFIX rdf: INSERT { GRAPH { ?record aocat:was_issued ?date. } } WHERE { +GRAPH { ?record aocat:is_part_of ?collection. ?collection aocat:was_issued ?date. MINUS { ?record aocat:was_issued ?x. } + } }; +PREFIX aocat: +PREFIX rdf: INSERT { GRAPH { ?record aocat:has_contributor ?agent. } } WHERE { +GRAPH { ?record aocat:is_part_of ?collection. ?collection aocat:has_contributor ?agent. MINUS { ?record aocat:has_contributor ?x. } + } }; +PREFIX aocat: +PREFIX rdf: INSERT { GRAPH { ?record aocat:has_responsible ?agent. } } WHERE { +GRAPH { ?record aocat:is_part_of ?collection. ?collection aocat:has_responsible ?agent. MINUS { ?record aocat:has_responsible ?x. } + } }; +PREFIX aocat: +PREFIX rdf: INSERT { GRAPH { ?record aocat:has_owner ?agent. } } WHERE { +GRAPH { ?record aocat:is_part_of ?collection. ?collection aocat:has_owner ?agent. MINUS { ?record aocat:has_owner ?x. } + } }; +PREFIX aocat: +PREFIX rdf: INSERT { GRAPH { ?record aocat:has_publisher ?agent. } } WHERE { +GRAPH { ?record aocat:is_part_of ?collection. ?collection aocat:has_publisher ?agent. MINUS { ?record aocat:has_publisher ?x. } + } }; +PREFIX aocat: +PREFIX rdf: INSERT { GRAPH { ?record aocat:has_access_rights ?ar. } } WHERE { +GRAPH { ?record aocat:is_part_of ?collection. ?collection aocat:has_access_rights ?ar. MINUS { ?record aocat:has_access_rights ?x. } + } }; +PREFIX aocat: +PREFIX rdf: INSERT { GRAPH { ?record aocat:has_access_policy ?ar. } } WHERE { +GRAPH { ?record aocat:is_part_of ?collection. - ?collection aocat:has_access_rights ?ar. + ?collection aocat:has_access_policy ?ar. MINUS { ?record aocat:has_access_policy ?x. } + } }; +PREFIX aocat: +PREFIX skos: INSERT { GRAPH { ?record aocat:has_derived_subject ?aat. } } +USING +USING WHERE { { ?record aocat:has_native_subject ?native_subject. @@ -95,6 +144,11 @@ WHERE { ?native_subject skos:narrowMatch ?aat. } }; + +PREFIX aocat: +PREFIX rdf: +PREFIX skos: +PREFIX time: INSERT { GRAPH { ?temporal aocat:has_period ?periodO. @@ -107,9 +161,9 @@ WHERE { ?temporal aocat:has_native_period ?native_period. ?native_period skos:prefLabel ?native_label. GRAPH { - ?periodO skos:altLabel ?native_label; - skos:inScheme ; - time:intervalStartedBy ?intervalStartedBy. + ?periodO skos:altLabel ?native_label . + ?periodO skos:inScheme . + ?periodO time:intervalStartedBy ?intervalStartedBy. ?intervalStartedBy skos:prefLabel ?temporalFrom. ?periodO time:intervalFinishedBy ?intervalFinishedBy. ?intervalFinishedBy skos:prefLabel ?temporalUntil.