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 new file mode 100644 index 0000000..261ee60 --- /dev/null +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_coflein.sparql @@ -0,0 +1,118 @@ +INSERT { GRAPH { ?record aocat:is_part_of . } } +WHERE { ?record rdf:type aocat:AO_Individual_Data_Resource. }; +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; + aocat:has_native_subject ?ns. + } + } +}; +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. + } + } +}; +INSERT { GRAPH { ?record aocat:was_modified ?date. } } +WHERE { + ?record aocat:is_part_of ?collection. + ?collection aocat:was_modified ?date. + MINUS { ?record aocat:was_modified ?x. } +}; +INSERT { GRAPH { ?record aocat:was_issued ?date. } } +WHERE { + ?record aocat:is_part_of ?collection. + ?collection aocat:was_issued ?date. + MINUS { ?record aocat:was_issued ?x. } +}; +INSERT { GRAPH { ?record aocat:has_contributor ?agent. } } +WHERE { + ?record aocat:is_part_of ?collection. + ?collection aocat:has_contributor ?agent. + MINUS { ?record aocat:has_contributor ?x. } +}; +INSERT { GRAPH { ?record aocat:has_responsible ?agent. } } +WHERE { + ?record aocat:is_part_of ?collection. + ?collection aocat:has_responsible ?agent. + MINUS { ?record aocat:has_responsible ?x. } +}; +INSERT { GRAPH { ?record aocat:has_owner ?agent. } } +WHERE { + ?record aocat:is_part_of ?collection. + ?collection aocat:has_owner ?agent. + MINUS { ?record aocat:has_owner ?x. } +}; +INSERT { GRAPH { ?record aocat:has_publisher ?agent. } } +WHERE { + ?record aocat:is_part_of ?collection. + ?collection aocat:has_publisher ?agent. + MINUS { ?record aocat:has_publisher ?x. } +}; +INSERT { GRAPH { ?record aocat:has_access_rights ?ar. } } +WHERE { + ?record aocat:is_part_of ?collection. + ?collection aocat:has_access_rights ?ar. + MINUS { ?record aocat:has_access_rights ?x. } +}; +INSERT { GRAPH { ?record aocat:has_access_policy ?ar. } } +WHERE { + ?record aocat:is_part_of ?collection. + ?collection aocat:has_access_rights ?ar. + MINUS { ?record aocat:has_access_policy ?x. } +}; +INSERT { GRAPH { ?record aocat:has_derived_subject ?aat. } } +WHERE { + { + ?record aocat:has_native_subject ?native_subject. + ?native_subject skos:exactMatch ?aat. + } + UNION + { + ?record aocat:has_native_subject ?native_subject. + ?native_subject skos:broadMatch ?aat. + } + UNION + { + ?record aocat:has_native_subject ?native_subject. + ?native_subject skos:closeMatch ?aat. + } + UNION + { + ?record aocat:has_native_subject ?native_subject. + ?native_subject skos:narrowMatch ?aat. + } +}; +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. + GRAPH { + ?periodO skos:altLabel ?native_label; + skos:inScheme ; + time:intervalStartedBy ?intervalStartedBy. + ?intervalStartedBy skos:prefLabel ?temporalFrom. + ?periodO time:intervalFinishedBy ?intervalFinishedBy. + ?intervalFinishedBy skos:prefLabel ?temporalUntil. + } + } +} \ No newline at end of file