diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/THANADOS/ordered_sparql_insert_THANADOS.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/THANADOS/ordered_sparql_insert_THANADOS.sparql new file mode 100644 index 0000000..6191847 --- /dev/null +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/THANADOS/ordered_sparql_insert_THANADOS.sparql @@ -0,0 +1,322 @@ +PREFIX aocat: +PREFIX rdf: +PREFIX rdfs: +INSERT { + GRAPH { + ?s aocat:has_temporal_coverage ?tcov . + } +} +WHERE { + GRAPH { + ?s rdf:type . + ?s aocat:is_part_of ?coll . + ?coll aocat:has_temporal_coverage ?tcov . + MINUS { + ?s rdf:type . + ?s aocat:has_temporal_coverage ?tc . + } + } +}; + +PREFIX aocat: +PREFIX rdf: +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 { + rdf:type . + rdfs:label "THANADOS" . + aocat:has_name "THANADOS" . + ?s aocat:has_creator . + ?s aocat:has_contributor . + ?s aocat:has_responsible . + ?s aocat:has_owner . + ?s aocat:has_publisher . + } + } + WHERE { + GRAPH { + ?s rdf:type . + } +}; + +PREFIX aocat: +PREFIX skos: +PREFIX rdf: +PREFIX rdfs: +INSERT { + GRAPH { + ?s aocat:was_issued "2022" + } + } + WHERE { + GRAPH { + ?s rdf:type . + MINUS{ + ?s rdf:type . + ?s aocat:was_issued ?smt . + } + } +}; + +PREFIX aocat: +PREFIX skos: +PREFIX rdf: +PREFIX rdfs: +INSERT { + GRAPH { + ?s aocat:has_access_rights "Not provided" + } + } + WHERE { + GRAPH { + ?s rdf:type . + MINUS{ + ?s rdf:type . + ?s aocat:has_access_rights ?smt . + } + } +}; + +PREFIX aocat: +PREFIX rdf: +PREFIX rdfs: +INSERT { + GRAPH { + ?s aocat:has_spatial_coverage ?scov . + ?scov aocat:has_place_name ?placeName . + } +} +WHERE { + GRAPH { + ?s rdf:type . + ?s aocat:is_part_of ?coll . + ?coll aocat:has_spatial_coverage ?scov . + ?scov aocat:has_place_name ?placeName . + MINUS { + ?s rdf:type . + ?s aocat:has_spatial_coverage ?sc . + ?sc aocat:has_place_name ?name . + } + } +}; +PREFIX aocat: +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 . + ?spatialRegion aocat:has_place_name ?placeName . + } + } +}; + +PREFIX aocat: +PREFIX rdf: +PREFIX rdfs: +PREFIX skos: +INSERT { + GRAPH { + ?s aocat:has_type . + rdf: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 ?t . + } + } +}; + +PREFIX aocat: +PREFIX rdf: +INSERT { + GRAPH { + + ?s aocat:has_creator ?cr . + + } + } + WHERE { + GRAPH { + ?s rdf:type . + ?s aocat:is_part_of ?coll . + ?coll aocat:has_creator ?cr . + MINUS{ + ?s rdf:type . + ?s aocat:has_creator ?x + } + + } +}; + +PREFIX aocat: +PREFIX rdf: +INSERT { + GRAPH { + + ?s aocat:has_contributor ?cr . + + } + } + WHERE { + GRAPH { + ?s rdf:type . + ?s aocat:is_part_of ?coll . + ?coll aocat:has_contributor ?cr . + MINUS{ + ?s rdf:type . + ?s aocat:has_contributor ?x + } + + } +}; + +PREFIX aocat: +PREFIX rdf: +INSERT { + GRAPH { + + ?s aocat:has_responsible ?cr . + + } + } + WHERE { + GRAPH { + ?s rdf:type . + ?s aocat:is_part_of ?coll . + ?coll aocat:has_responsible ?cr . + MINUS{ + ?s rdf:type . + ?s aocat:has_responsible ?x + } + + } +}; + +PREFIX aocat: +PREFIX rdf: +INSERT { + GRAPH { + + ?s aocat:has_owner ?cr . + + } + } + WHERE { + GRAPH { + ?s rdf:type . + ?s aocat:is_part_of ?coll . + ?coll aocat:has_owner ?cr . + MINUS{ + ?s rdf:type . + ?s aocat:has_owner ?x + } + + } +}; + +PREFIX aocat: +PREFIX rdf: +INSERT { + GRAPH { + + ?s aocat:has_publisher ?cr . + + } + } + WHERE { + GRAPH { + ?s rdf:type . + ?s aocat:is_part_of ?coll . + ?coll aocat:has_publisher ?cr . + MINUS{ + ?s rdf:type . + ?s aocat:has_publisher ?x + } + + } +}; + +PREFIX aocat: +PREFIX rdf: +INSERT { + GRAPH { + + ?s aocat:was_issued ?cr . + + } + } + WHERE { + GRAPH { + ?s rdf:type . + ?s aocat:is_part_of ?coll . + ?coll aocat:was_issued ?cr . + MINUS{ + ?s rdf:type . + ?s aocat:was_issued ?x + } + + } +}; + +PREFIX aocat: +PREFIX rdf: +INSERT { + GRAPH { + + ?s aocat:has_access_rights ?cr . + + } + } + WHERE { + GRAPH { + ?s rdf:type . + ?s aocat:is_part_of ?coll . + ?coll aocat:has_access_rights ?cr . + MINUS{ + ?s rdf:type . + ?s aocat:has_access_rights ?x + } + + } +}; + + + +