From 6418d27d32febe885a38378eaafb54de4a828c21 Mon Sep 17 00:00:00 2001 From: Alessia Bardi Date: Mon, 27 Mar 2023 11:34:40 +0200 Subject: [PATCH] removed '<>' in wf param, otherwise we get an exception when the workflow is assigned --- .../ordered_sparql_insert_OSLO_coll.sparql | 82 +++++++++++++++++++ .../import_periodo_into_graphdb_wf.xml.st | 2 +- 2 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/OSLO/ordered_sparql_insert_OSLO_coll.sparql diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/OSLO/ordered_sparql_insert_OSLO_coll.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/OSLO/ordered_sparql_insert_OSLO_coll.sparql new file mode 100644 index 0000000..41ae7bc --- /dev/null +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/OSLO/ordered_sparql_insert_OSLO_coll.sparql @@ -0,0 +1,82 @@ +PREFIX aocat: +PREFIX rdf: +PREFIX skos: +INSERT { + GRAPH { + ?s aocat:has_type . + rdf:type . + skos:prefLabel "collection" + } + } + WHERE { + GRAPH { + ?s rdf:type . + MINUS { + ?s rdf:type . + ?s aocat:has_type ?t . + } + } +}; + +PREFIX aocat: + INSERT { + GRAPH { + ?temporal aocat:has_period ?nativePeriod . + ?temporal aocat:from ?temporalFrom . + ?temporal aocat:until ?temporalUntil . + } + } + WHERE { + GRAPH { + ?temporal aocat:has_native_period ?nativePeriod . + ?temporal aocat:from ?temporalFrom . + ?temporal aocat:until ?temporalUntil . + } + }; + + PREFIX aocat: + PREFIX rdfs: + PREFIX skos: + INSERT { + GRAPH { + ?nativePeriod skos:prefLabel ?periodLabel . + } + } + WHERE { + GRAPH { + ?temporal aocat:has_native_period ?nativePeriod . + ?nativePeriod rdfs:label ?periodLabel . + } + }; + + PREFIX aocat: + PREFIX skos: + PREFIX rdf: + INSERT { + GRAPH { + ?record aocat:has_derived_subject ?aat . + } + } + USING + USING + WHERE { + { + ?record aocat:has_native_subject ?native_subject . + ?native_subject skos:exactMatch ?aat . + } + union + { + ?record aocat:has_native_subject ?native_subject . + ?native_subject skos:broadMatch ?aat . + } + union + { + ?record aocat:has_native_subject ?native_subject . + ?native_subject skos:closeMatch ?aat . + } + union + { + ?record aocat:has_native_subject ?native_subject . + ?native_subject skos:narrowMatch ?aat . + } + }; \ No newline at end of file diff --git a/dnet-ariadneplus/src/main/resources/eu/dnetlib/ariadneplus/workflows/repo-hi/import_periodo_into_graphdb_wf.xml.st b/dnet-ariadneplus/src/main/resources/eu/dnetlib/ariadneplus/workflows/repo-hi/import_periodo_into_graphdb_wf.xml.st index e6041d6..8f25fe4 100644 --- a/dnet-ariadneplus/src/main/resources/eu/dnetlib/ariadneplus/workflows/repo-hi/import_periodo_into_graphdb_wf.xml.st +++ b/dnet-ariadneplus/src/main/resources/eu/dnetlib/ariadneplus/workflows/repo-hi/import_periodo_into_graphdb_wf.xml.st @@ -18,7 +18,7 @@ https://aggregator.ariadne.d4science.org/ariadneplus-graphdb - ariadneplus::::periodo + ariadneplus::PROVIDER::periodo