From 1b11d0ee1c655b9c4b48af267bb15c22fcb8ac6f Mon Sep 17 00:00:00 2001 From: Alessia Bardi Date: Fri, 4 Sep 2020 11:11:22 +0200 Subject: [PATCH] default for collection has_type (needed by HNM) --- ...rt_defaults_for_collection_template.sparql | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/01_insert_defaults_for_collection_template.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/01_insert_defaults_for_collection_template.sparql index 27daedd..d98320e 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/01_insert_defaults_for_collection_template.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/01_insert_defaults_for_collection_template.sparql @@ -122,7 +122,25 @@ INSERT { } }; -} +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 . + } + } +}; + + + #cannot set defaults in collections for datetime: # ?collection aocat:was_issued ?issued .