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 {