From 09d6ef6fa80b35061a245d4393acaa475e935c7a Mon Sep 17 00:00:00 2001 From: Alessia Bardi Date: Fri, 14 Apr 2023 16:38:37 +0200 Subject: [PATCH] default for missing contributor and deletion of wrong period labels --- ...sparql_insert_collection_oeaw_arche.sparql | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/OEAW/ordered_sparql_insert_collection_oeaw_arche.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/OEAW/ordered_sparql_insert_collection_oeaw_arche.sparql index c139042..7404a4a 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/OEAW/ordered_sparql_insert_collection_oeaw_arche.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/OEAW/ordered_sparql_insert_collection_oeaw_arche.sparql @@ -32,6 +32,26 @@ GRAPH } }; +PREFIX aocat: +PREFIX rdf: +INSERT { + GRAPH { + ?s aocat:has_contributor . + rdf:type . + rdfs:label "Not provided" . + aocat:has_name "Not provided" . + } +} +WHERE { + GRAPH { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:has_contributor ?agent . + } + } +}; + PREFIX aocat: PREFIX skos: PREFIX ariadneplus: @@ -75,3 +95,30 @@ WHERE { FILTER(str(?matchLabel) = ?native_label) } }; + +PREFIX aocat: + INSERT { + GRAPH { + ?temporal aocat:has_period ?period . + ?temporal aocat:from ?temporalFrom . + ?temporal aocat:until ?temporalUntil . + } + } + WHERE { + GRAPH { + ?temporal aocat:has_period ?period . + ?temporal aocat:from ?temporalFrom . + ?temporal aocat:until ?temporalUntil . + } + }; + + PREFIX aocat: + PREFIX skos: +WITH +DELETE { ?period skos:prefLabel ?label} +WHERE { + ?temporal aocat:has_period ?period . + ?period skos:prefLabel ?label +} + +