From 11b439c9558e8601f5c044c538458abf75e80441 Mon Sep 17 00:00:00 2001 From: Alessia Bardi Date: Tue, 24 Jan 2023 18:48:33 +0100 Subject: [PATCH] enrichment queries for reperti and aree datasets from MIBAC --- .../ordered_sparql_insert_mibac_aree.sparql | 68 +++++++++++++++++++ ...ordered_sparql_insert_mibac_reperti.sparql | 68 +++++++++++++++++++ 2 files changed, 136 insertions(+) create mode 100644 dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/MIBAC/ordered_sparql_insert_mibac_aree.sparql create mode 100644 dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/MIBAC/ordered_sparql_insert_mibac_reperti.sparql diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/MIBAC/ordered_sparql_insert_mibac_aree.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/MIBAC/ordered_sparql_insert_mibac_aree.sparql new file mode 100644 index 0000000..91ad845 --- /dev/null +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/MIBAC/ordered_sparql_insert_mibac_aree.sparql @@ -0,0 +1,68 @@ +PREFIX aocat: +PREFIX skos: + +INSERT { + GRAPH { + ?record aocat:has_derived_subject ?derived_subject . + } +} +USING +WHERE { + { + ?record aocat:has_derived_subject ?derived_subject . + } +}; + +PREFIX aocat: +PREFIX skos: + +INSERT { + GRAPH { + ?derived_subject skos:prefLabel ?dslabel . + } +} +USING +WHERE { + { + ?record aocat:has_derived_subject ?derived_subject . + ?derived_subject skos:prefLabel ?dslabel . + } +}; + +PREFIX skos: + PREFIX aocat: + PREFIX time: + PREFIX rdfs: + INSERT { + GRAPH { + ?temporal aocat:has_period ?native_period . + ?temporal aocat:from ?from . + ?temporal aocat:until ?until . + } + } + WHERE { + GRAPH { + ?temporal aocat:has_native_period ?native_period . + ?native_period rdfs:label|skos:prefLabel ?native_label . + ?temporal aocat:from ?from . + ?temporal aocat:until ?until . + } + }; + + PREFIX skos: + PREFIX aocat: + PREFIX time: + PREFIX rdfs: + INSERT { + GRAPH { + ?native_period skos:prefLabel ?native_label . + } + } + WHERE { + GRAPH { + ?temporal aocat:has_native_period ?native_period . + ?native_period rdfs:label|skos:prefLabel ?native_label . + ?temporal aocat:from ?from . + ?temporal aocat:until ?until . + } + }; \ No newline at end of file diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/MIBAC/ordered_sparql_insert_mibac_reperti.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/MIBAC/ordered_sparql_insert_mibac_reperti.sparql new file mode 100644 index 0000000..50520d9 --- /dev/null +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/MIBAC/ordered_sparql_insert_mibac_reperti.sparql @@ -0,0 +1,68 @@ +PREFIX aocat: +PREFIX skos: + +INSERT { + GRAPH { + ?record aocat:has_derived_subject ?derived_subject . + } +} +USING +WHERE { + { + ?record aocat:has_derived_subject ?derived_subject . + } +}; + +PREFIX aocat: +PREFIX skos: + +INSERT { + GRAPH { + ?derived_subject skos:prefLabel ?dslabel . + } +} +USING +WHERE { + { + ?record aocat:has_derived_subject ?derived_subject . + ?derived_subject skos:prefLabel ?dslabel . + } +}; + +PREFIX skos: + PREFIX aocat: + PREFIX time: + PREFIX rdfs: + INSERT { + GRAPH { + ?temporal aocat:has_period ?native_period . + ?temporal aocat:from ?from . + ?temporal aocat:until ?until . + } + } + WHERE { + GRAPH { + ?temporal aocat:has_native_period ?native_period . + ?native_period rdfs:label|skos:prefLabel ?native_label . + ?temporal aocat:from ?from . + ?temporal aocat:until ?until . + } + }; + + PREFIX skos: + PREFIX aocat: + PREFIX time: + PREFIX rdfs: + INSERT { + GRAPH { + ?native_period skos:prefLabel ?native_label . + } + } + WHERE { + GRAPH { + ?temporal aocat:has_native_period ?native_period . + ?native_period rdfs:label|skos:prefLabel ?native_label . + ?temporal aocat:from ?from . + ?temporal aocat:until ?until . + } + }; \ No newline at end of file