From be31a772a13b78f3dfa453386dc18d55b3d2a275 Mon Sep 17 00:00:00 2001 From: Alessia Bardi Date: Mon, 7 Sep 2020 15:46:07 +0200 Subject: [PATCH] SPARQL INSERT for HNM --- .../HNM/ordered_sparql_insert_hnm.sparql | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/HNM/ordered_sparql_insert_hnm.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/HNM/ordered_sparql_insert_hnm.sparql index 9ae6a34..3575e62 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/HNM/ordered_sparql_insert_hnm.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/HNM/ordered_sparql_insert_hnm.sparql @@ -6,7 +6,7 @@ INSERT { GRAPH { ?s aocat:has_type . rdf:type . - skos:prefLabel "collection" + skos:prefLabel "Dataset Collection" } } WHERE { @@ -102,6 +102,18 @@ INSERT { } } }; +PREFIX dcterms: +INSERT { + GRAPH { + ?periodO ?pred ?o . + } + } + WHERE { + GRAPH { + ?periodO dcterms:spatial . + ?periodO ?pred ?o . + } + }; PREFIX skos: PREFIX aocat: @@ -119,9 +131,8 @@ INSERT { ?temporal aocat:has_native_period ?native_period . ?native_period skos:prefLabel ?native_label . optional { - GRAPH { + GRAPH { ?periodO skos:altLabel ?native_label . - ?periodO dcterms:spatial . ?periodO time:intervalStartedBy ?intervalStartedBy . ?intervalStartedBy skos:prefLabel ?temporalFrom . ?periodO time:intervalFinishedBy ?intervalFinishedBy . @@ -129,4 +140,4 @@ INSERT { } } } - }; + }; \ No newline at end of file