From ca1d4a3b908a5560c8ec3d1a657a302a508a5d92 Mon Sep 17 00:00:00 2001 From: Alessia Bardi Date: Tue, 8 Nov 2022 11:33:13 +0100 Subject: [PATCH] added ariadnesubject labels --- .../ADS/ordered_sparql_insert_archives.sparql | 38 ++++++++++++------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_archives.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_archives.sparql index 7ccc5f5..5a5e43b 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_archives.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/ADS/ordered_sparql_insert_archives.sparql @@ -34,6 +34,22 @@ WHERE { } }; +PREFIX skos: +PREFIX aocat: +INSERT { + GRAPH { + ?ariadneSubject skos:prefLabel ?label . + } +} +WHERE { + GRAPH { + ?s aocat:has_ARIADNE_subject ?ariadneSubject . + GRAPH ?g { + ?ariadneSubject skos:prefLabel ?label . + } + } +}; + PREFIX aocat: PREFIX skos: PREFIX ariadneplus: @@ -251,7 +267,7 @@ INSERT { } }; -PREFIX skos: + PREFIX skos: PREFIX aocat: INSERT { GRAPH { @@ -262,27 +278,23 @@ PREFIX skos: USING WHERE { { - ?record aocat:has_native_subject ?native_subject . - ?aat_subject owl:sameAs ?native_subject . - ?aat_subject skos:exactMatch ?aat . + ?record aocat:has_native_subject ?native_subject . + ?native_subject skos:exactMatch ?aat . } union { - ?record aocat:has_native_subject ?native_subject . - ?aat_subject owl:sameAs ?native_subject . - ?aat_subject skos:broadMatch ?aat . + ?record aocat:has_native_subject ?native_subject . + ?native_subject skos:broadMatch ?aat . } union { - ?record aocat:has_native_subject ?native_subject . - ?aat_subject owl:sameAs ?native_subject . - ?aat_subject skos:closeMatch ?aat . + ?record aocat:has_native_subject ?native_subject . + ?native_subject skos:closeMatch ?aat . } union { - ?record aocat:has_native_subject ?native_subject . - ?aat_subject owl:sameAs ?native_subject . - ?aat_subject skos:narrowMatch ?aat . + ?record aocat:has_native_subject ?native_subject . + ?native_subject skos:narrowMatch ?aat . } };