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 . - };