From 6e9537b17d76a8ad4fc6a35d0a5bce0cd8bad1a0 Mon Sep 17 00:00:00 2001 From: Alessia Bardi Date: Mon, 24 Oct 2022 13:35:01 +0200 Subject: [PATCH] enrich queries for FindSampo --- .../ordered_sparql_insert_FindSampo.sparql | 98 +++++++++++++++++++ 1 file changed, 98 insertions(+) diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu.dnetlib.ariadneplus.sparql.enrich.FindSampo/ordered_sparql_insert_FindSampo.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu.dnetlib.ariadneplus.sparql.enrich.FindSampo/ordered_sparql_insert_FindSampo.sparql index a74eed5..9ca648d 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu.dnetlib.ariadneplus.sparql.enrich.FindSampo/ordered_sparql_insert_FindSampo.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu.dnetlib.ariadneplus.sparql.enrich.FindSampo/ordered_sparql_insert_FindSampo.sparql @@ -1,3 +1,101 @@ +PREFIX aocat: +PREFIX rdf: +PREFIX skos: +PREFIX rdfs: +PREFIX ariadneplus: +PREFIX skosxl: +PREFIX gvp: +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 rdf: +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 rdf: +INSERT { + GRAPH { + aocat:has_original_id "https://findsampo.fi" . + } + } + WHERE { + GRAPH { + rdf:type . + MINUS { + ?s rdf:type . + aocat:has_original_id ?id . + } + } +}; + +PREFIX skos: +PREFIX aocat: +PREFIX rdfs: +INSERT { + GRAPH { + ?ns skos:prefLabel ?nsLabel . + } + } + WHERE { + GRAPH { + ?s aocat:has_native_subject ?ns . + ?ns rdfs:label ?nsLabel . + MINUS { + ?ns skos:prefLabel ?l + } + } +}; + +PREFIX aocat: +PREFIX rdf: +PREFIX skos: +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 . + ?s aocat:has_native_subject ?ns . + } + } +}; + + PREFIX aocat: PREFIX skos: INSERT {