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 .