diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/FASTI/ordered_sparql_insert_fasti.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/FASTI/ordered_sparql_insert_fasti.sparql index b84034a..8432b88 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/FASTI/ordered_sparql_insert_fasti.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/FASTI/ordered_sparql_insert_fasti.sparql @@ -221,4 +221,43 @@ WHERE { ?temporal aocat:from ?from . ?temporal aocat:until ?until . } + }; + + PREFIX skos: + PREFIX aocat: + INSERT { + GRAPH { + ?record aocat:has_derived_subject ?aat . + } + } + USING + USING + WHERE { + { + ?record aocat:has_native_subject ?native_subject . + ?native_subject skos:prefLabel ?native_subject_label . + ?aat_subject skos:prefLabel ?native_subject_label . + ?aat_subject skos:exactMatch ?aat . + } + union + { + ?record aocat:has_native_subject ?native_subject . + ?native_subject skos:prefLabel ?native_subject_label . + ?aat_subject skos:prefLabel ?native_subject_label . + ?aat_subject skos:broadMatch ?aat . + } + union + { + ?record aocat:has_native_subject ?native_subject . + ?native_subject skos:prefLabel ?native_subject_label . + ?aat_subject skos:prefLabel ?native_subject_label . + ?aat_subject skos:closeMatch ?aat . + } + union + { + ?record aocat:has_native_subject ?native_subject . + ?native_subject skos:prefLabel ?native_subject_label . + ?aat_subject skos:prefLabel ?native_subject_label . + ?aat_subject skos:narrowMatch ?aat . + } }; \ No newline at end of file