From 600f80317cae7f7283eb1e5090228b5a23cc4d12 Mon Sep 17 00:00:00 2001 From: Alessia Bardi Date: Thu, 16 Jun 2022 20:08:10 +0200 Subject: [PATCH] enrichment queries for THANADOS --- .../ordered_sparql_insert_THANADOS.sparql | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/THANADOS/ordered_sparql_insert_THANADOS.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/THANADOS/ordered_sparql_insert_THANADOS.sparql index 6191847..3cfaefa 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/THANADOS/ordered_sparql_insert_THANADOS.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/THANADOS/ordered_sparql_insert_THANADOS.sparql @@ -317,6 +317,72 @@ INSERT { } }; +PREFIX skos: +PREFIX aocat: +INSERT { + GRAPH { + ?s aocat:has_derived_subject ?aat . + } +} +USING +USING +WHERE { + { + ?s aocat:has_native_subject ?native_subject . + ?aatmatch owl:sameAs ?vocuri . + ?aatmatch skos:exactMatch ?aat . + bind (IRI(concat( "https://thanados.net/vocabulary/", ucase(strafter(str(?native_subject),"THANADOS/")))) as ?vocuribuilt) + filter(?vocuri=?vocuribuilt) + } + union + { + ?s aocat:has_native_subject ?native_subject . + ?aatmatch owl:sameAs ?vocuri . + ?aatmatch skos:broadMatch ?aat . + bind (IRI(concat( "https://thanados.net/vocabulary/", ucase(strafter(str(?native_subject),"THANADOS/")))) as ?vocuribuilt) + filter(?vocuri=?vocuribuilt) + } + union + { + ?s aocat:has_native_subject ?native_subject . + ?aatmatch owl:sameAs ?vocuri . + ?aatmatch skos:closeMatch ?aat . + bind (IRI(concat( "https://thanados.net/vocabulary/", ucase(strafter(str(?native_subject),"THANADOS/")))) as ?vocuribuilt) + filter(?vocuri=?vocuribuilt) + + } + union + { + ?s aocat:has_native_subject ?native_subject . + ?aatmatch owl:sameAs ?vocuri . + ?aatmatch skos:narrowMatch ?aat . + bind (IRI(concat( "https://thanados.net/vocabulary/", ucase(strafter(str(?native_subject),"THANADOS/")))) as ?vocuribuilt) + filter(?vocuri=?vocuribuilt) + + } +}; + +PREFIX skos: +PREFIX aocat: +PREFIX time: +PREFIX dcterms: +PREFIX ariadneplus: +INSERT { + GRAPH { + ?temporal aocat:from ?temporalFrom . + ?temporal aocat:until ?temporalUntil . + } +} +USING +USING +WHERE { + ?temporal aocat:has_period ?periodO_URI . + ?periodO_URI time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom . + ?periodO_URI time:intervalFinishedBy / time:hasDateTimeDescription / time:year ?temporalUntil . +}; + + +