diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/DAI/ordered_sparql_insert_afe_rgk.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/DAI/ordered_sparql_insert_afe_rgk.sparql new file mode 100644 index 0000000..b21c415 --- /dev/null +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/DAI/ordered_sparql_insert_afe_rgk.sparql @@ -0,0 +1,168 @@ +PREFIX aocat: +PREFIX skos: +PREFIX ariadneplus: +PREFIX rdf: +PREFIX rdfs: +INSERT { + GRAPH { + ?record aocat:has_creator ?coll_value . + ?coll_value rdf:type ?type . + ?coll_value rdfs:label ?label . + ?coll_value aocat:has_name ?name . + ?coll_value aocat:has_homepage ?homepage . + } +} +USING +USING +WHERE { + ?record aocat:is_part_of ?collection . + ?collection aocat:has_creator ?coll_value . + ?coll_value rdf:type ?type . + ?coll_value rdfs:label ?label . + ?coll_value aocat:has_name ?name . + ?coll_value aocat:has_agent_identifier ?homepage . + MINUS { + ?record aocat:has_creator ?rec_value . + } +}; + +PREFIX aocat: +PREFIX skos: +PREFIX ariadneplus: +PREFIX rdf: +PREFIX rdfs: +INSERT { + GRAPH { + ?record aocat:has_publisher ?coll_value . + ?coll_value rdf:type ?type . + ?coll_value rdfs:label ?label . + ?coll_value aocat:has_name ?name . + ?coll_value aocat:has_homepage ?homepage . + } +} +USING +USING +WHERE { + ?record aocat:is_part_of ?collection . + ?collection aocat:has_publisher ?coll_value . + ?coll_value rdf:type ?type . + ?coll_value rdfs:label ?label . + ?coll_value aocat:has_name ?name . + ?coll_value aocat:has_homepage ?homepage . + MINUS { + ?record aocat:has_publisher ?rec_value . + } +}; + +PREFIX aocat: +PREFIX skos: +PREFIX ariadneplus: +PREFIX rdf: +PREFIX rdfs: +INSERT { + GRAPH { + ?record aocat:has_owner ?coll_value . + ?coll_value rdf:type ?type . + ?coll_value rdfs:label ?label . + ?coll_value aocat:has_name ?name . + ?coll_value aocat:has_homepage ?homepage . + } +} +USING +USING +WHERE { + ?record aocat:is_part_of ?collection . + ?collection aocat:has_owner ?coll_value . + ?coll_value rdf:type ?type . + ?coll_value rdfs:label ?label . + ?coll_value aocat:has_name ?name . + ?coll_value aocat:has_homepage ?homepage . + MINUS { + ?record aocat:has_owner ?rec_value . + } +}; + +PREFIX aocat: +PREFIX skos: +PREFIX ariadneplus: +PREFIX rdf: +PREFIX rdfs: +INSERT { + GRAPH { + ?record aocat:has_responsible ?coll_value . + ?coll_value rdf:type ?type . + ?coll_value rdfs:label ?label . + ?coll_value aocat:has_name ?name . + ?coll_value aocat:has_homepage ?homepage . + } +} +USING +USING +WHERE { + ?record aocat:is_part_of ?collection . + ?collection aocat:has_responsible ?coll_value . + ?coll_value rdf:type ?type . + ?coll_value rdfs:label ?label . + ?coll_value aocat:has_name ?name . + ?coll_value aocat:has_agent_identifier ?homepage . + MINUS { + ?record aocat:has_responsible ?rec_value . + } +}; + +PREFIX aocat: +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 ?contributor . + } + } +}; + +PREFIX aocat: +INSERT { + GRAPH { + ?record aocat:has_primary_visual_component ?visual_component . + } +} +USING +WHERE { + ?record aocat:has_visual_component ?visual_component . + MINUS { + ?record aocat:has_primary_visual_component ?primary_visual_component . + } +}; + +PREFIX aocat: +PREFIX skos: +PREFIX ariadneplus: +INSERT { + GRAPH { + ?record aocat:was_issued ?coll_issued_value . + ?record aocat:was_modified ?coll_modified_value . + } +} +USING +USING +WHERE { + ?record aocat:is_part_of ?collection . + ?collection aocat:was_issued ?coll_issued_value . + ?collection aocat:was_modified ?coll_modified_value . + MINUS { + ?record aocat:was_issued ?rec_value . + ?record aocat:was_modified ?rec_value2 . + } +}; \ No newline at end of file diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/DAI/ordered_sparql_insert_afe_rgk_collection.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/DAI/ordered_sparql_insert_afe_rgk_collection.sparql new file mode 100644 index 0000000..d992401 --- /dev/null +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/DAI/ordered_sparql_insert_afe_rgk_collection.sparql @@ -0,0 +1,40 @@ +PREFIX aocat: +PREFIX rdf: +PREFIX rdfs: +PREFIX skos: +INSERT { + GRAPH { + ?s aocat:has_type . + rdf:type . + skos:prefLabel "collection" + } + } + WHERE { + GRAPH { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:has_type ?t . + } + } +}; + +PREFIX aocat: +PREFIX skos: +PREFIX rdf: +PREFIX rdfs: +INSERT { + GRAPH { + ?s aocat:was_issued ?created_on . + ?s aocat:was_modified ?created_on . + } +} +USING +WHERE { + ?s rdf:type aocat:AO_Collection . + ?s aocat:was_created_on ?created_on . + MINUS { + ?s rdf:type aocat:AO_Collection . + ?s aocat:was_issued ?issued . + } +}; \ No newline at end of file