From 55ace9b60ce79734ef8752625f3227da3aa07d2b Mon Sep 17 00:00:00 2001 From: Alessia Bardi Date: Wed, 5 Oct 2022 10:26:35 +0200 Subject: [PATCH] added template query --- ..._insert_periodo_enrichment_template.sparql | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/05_insert_periodo_enrichment_template.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/05_insert_periodo_enrichment_template.sparql index ba72424..8e31fc0 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/05_insert_periodo_enrichment_template.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/05_insert_periodo_enrichment_template.sparql @@ -1,4 +1,28 @@ #PERIODO ENRICHMENT + + # WHEN THE OLD ARIADNE PERIODO COLLECTION IS INVOLVED DO THIS FIRST TO PUT THE TRIPLES IN THE PROPER NAMED GRAPH + + PREFIX dcterms: + INSERT { + GRAPH ::periodo> { + ?periodO ?pred ?o . + ?o ?pred2 ?o2 . + ?o2 ?pred3 ?o3 . + } + } + WHERE { + GRAPH { + ?periodO dcterms:spatial . + ?periodO ?pred ?o . + optional { + ?o ?pred2 ?o2 . + optional { + ?o2 ?pred3 ?o3 . + } + } + } + }; + PREFIX skos: PREFIX aocat: PREFIX time: @@ -24,4 +48,4 @@ } } } - }; \ No newline at end of file + };