From 0d27dadde0097683a7d6ff219c384e1d55ba52d8 Mon Sep 17 00:00:00 2001 From: Alessia Bardi Date: Mon, 23 Jan 2023 13:35:27 +0100 Subject: [PATCH] INP Cronica enrichment query: ARIADNE subject from collection, actors from publisher --- .../ordered_sparql_insert_INP_cronica.sparql | 102 ++++++++++++++++++ 1 file changed, 102 insertions(+) diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/INP/ordered_sparql_insert_INP_cronica.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/INP/ordered_sparql_insert_INP_cronica.sparql index bbd32d6..8ad0a1b 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/INP/ordered_sparql_insert_INP_cronica.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/INP/ordered_sparql_insert_INP_cronica.sparql @@ -1,3 +1,18 @@ + PREFIX aocat: + INSERT { + GRAPH { + ?s aocat:has_ARIADNE_subject ?collSubj + } + } + WHERE { + GRAPH { + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:is_part_of ?coll . + ?coll aocat:has_ARIADNE_subject ?collSubj + } + }; + + PREFIX aocat: INSERT { GRAPH { @@ -15,6 +30,7 @@ PREFIX aocat: }; PREFIX aocat: + PREFIX skos: INSERT { GRAPH { ?periodOURI skos:prefLabel ?periodLabel . @@ -27,6 +43,8 @@ PREFIX aocat: } }; + + PREFIX aocat: INSERT { GRAPH { @@ -40,6 +58,7 @@ PREFIX aocat: }; PREFIX aocat: + PREFIX skos: INSERT { GRAPH { ?derivedSubject skos:prefLabel ?prefLabel . @@ -52,3 +71,86 @@ PREFIX aocat: } }; + PREFIX aocat: + PREFIX skos: + INSERT { + GRAPH { + ?s aocat:has_type . + skos:prefLabel "provided record" . + } + } + WHERE { + GRAPH { + ?s rdf:type aocat:AO_Individual_Data_Resource . + } + }; + + PREFIX aocat: + INSERT { + GRAPH { + ?s aocat:has_creator ?pub . + } + } + WHERE { + GRAPH { + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:has_publisher ?pub . + MINUS { + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:has_creator ?creator . + } + } + }; + + + PREFIX aocat: + INSERT { + GRAPH { + ?s aocat:has_contributor ?pub . + } + } + WHERE { + GRAPH { + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:has_publisher ?pub . + MINUS { + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:has_contributor ?c . + } + } + }; + + PREFIX aocat: + INSERT { + GRAPH { + ?s aocat:was_modified ?created + } + } + WHERE { + GRAPH { + ?s aocat:was_created_on ?created . + MINUS { + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:was_modified ?mod . + } + } + }; + + PREFIX aocat: + INSERT { + GRAPH { + ?s aocat:was_issued ?created + } + } + WHERE { + GRAPH { + ?s aocat:was_created_on ?created . + MINUS { + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:was_issued ?mod . + } + } + }; + + +