From cd09d515a3a846dec4d9197b4d6aceb92dad6640 Mon Sep 17 00:00:00 2001 From: Alessia Bardi Date: Tue, 24 Jan 2023 18:50:43 +0100 Subject: [PATCH] updated enrichment query for DIME with AAT matching file --- .../AARHUS/ordered_sparql_insert_dime.sparql | 54 ++++++++++++++----- 1 file changed, 41 insertions(+), 13 deletions(-) diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/AARHUS/ordered_sparql_insert_dime.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/AARHUS/ordered_sparql_insert_dime.sparql index 989ea17..ca786d0 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/AARHUS/ordered_sparql_insert_dime.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/AARHUS/ordered_sparql_insert_dime.sparql @@ -142,28 +142,56 @@ WHERE { }; PREFIX aocat: +PREFIX skos: + INSERT { + GRAPH { + ?record aocat:has_derived_subject ?aat . + } + GRAPH { + ?derivedSubject skos:prefLabel ?label . + } + } + USING + WHERE { + ?record aocat:has_derived_subject ?aat . + ?derivedSubject skos:prefLabel ?label . + }; + + PREFIX aocat: + PREFIX skos: INSERT { GRAPH { ?record aocat:has_derived_subject ?aat . } } + USING USING WHERE { - ?record aocat:has_derived_subject ?aat . + { + ?record aocat:has_native_subject ?native_subject . + ?x owl:sameAs ?native_subject . + ?x skos:exactMatch ?aat . + } + union + { + ?record aocat:has_native_subject ?native_subject . + ?x owl:sameAs ?native_subject . + ?x skos:broadMatch ?aat . + } + union + { + ?record aocat:has_native_subject ?native_subject . + ?x owl:sameAs ?native_subject . + ?x skos:closeMatch ?aat . + } + union + { + ?record aocat:has_native_subject ?native_subject . + ?x owl:sameAs ?native_subject . + ?x skos:narrowMatch ?aat . + } }; - PREFIX aocat: - PREFIX skos: - INSERT { - GRAPH { - ?derivedSubject skos:prefLabel ?label . - } - } - USING - WHERE { - ?record aocat:has_derived_subject ?derivedSubject . - ?derivedSubject skos:prefLabel ?label . - };