From 51271e2fc03d2359c77e76cac03e5940589e218c Mon Sep 17 00:00:00 2001 From: Alessia Bardi Date: Tue, 1 Nov 2022 18:15:17 +0100 Subject: [PATCH] AAT and periodO enrichment for the LNEC collection --- ...dered_sparql_insert_LNEC_collection.sparql | 83 ++++++++++++++++++- 1 file changed, 82 insertions(+), 1 deletion(-) diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/LNEC/ordered_sparql_insert_LNEC_collection.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/LNEC/ordered_sparql_insert_LNEC_collection.sparql index e556c26..a3481f8 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/LNEC/ordered_sparql_insert_LNEC_collection.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/LNEC/ordered_sparql_insert_LNEC_collection.sparql @@ -37,4 +37,85 @@ WHERE { ?s rdf:type aocat:AO_Collection . ?s aocat:was_issued ?issued . } -}; \ No newline at end of file +}; + + PREFIX aocat: + PREFIX skos: + INSERT { + GRAPH { + ?record aocat:has_derived_subject ?aat . + } + } + WHERE { + GRAPH { + ?record aocat:has_native_subject ?ns. + GRAPH { + { + ?ns skos:closeMatch ?aat . + } + union + { + ?ns skos:exactMatch ?aat . + } + union + { + ?ns skos:narrowMatch ?aat . + } + union + { + ?ns skos:broadMatch ?aat . + } + } + } + }; + + PREFIX aocat: + PREFIX skos: + PREFIX rdf: + PREFIX rdfs: + PREFIX owl: + PREFIX ariadneplus: + PREFIX time: + PREFIX periodo: + INSERT { + GRAPH { + ?temporal aocat:has_period ?periodO . + ?temporal aocat:from ?temporalFrom . + ?temporal aocat:until ?temporalUntil . + } + } + WHERE { + GRAPH { + ?temporal aocat:has_native_period ?native_period . + ?native_period skos:prefLabel ?native_label . + optional { + GRAPH { + ?periodO skos:altLabel ?native_label . + ?periodO time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom . + ?periodO time:intervalFinishedBy / time:hasDateTimeDescription / time:year ?temporalUntil . + } + } + } + }; + + PREFIX aocat: + PREFIX skos: + PREFIX rdf: + PREFIX rdfs: + PREFIX owl: + PREFIX ariadneplus: + PREFIX time: + PREFIX periodo: + INSERT { + GRAPH { + ?temporal aocat:from ?temporalFrom . + ?temporal aocat:until ?temporalUntil . + } + } + WHERE { + GRAPH { + ?s aocat:has_temporal_coverage ?temporal . + ?temporal aocat:from ?temporalFrom . + ?temporal aocat:until ?temporalUntil . + } + }; \ No newline at end of file