From 09627688ca98c1c98953b366a1b71157266ff03a Mon Sep 17 00:00:00 2001 From: Alessia Bardi Date: Wed, 31 May 2023 11:17:27 +0200 Subject: [PATCH] added enrichment query for new Inrap collection about NLP --- .../INRAP/ordered_sparql_insert_nlp.sparql | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/INRAP/ordered_sparql_insert_nlp.sparql diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/INRAP/ordered_sparql_insert_nlp.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/INRAP/ordered_sparql_insert_nlp.sparql new file mode 100644 index 0000000..a343073 --- /dev/null +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/INRAP/ordered_sparql_insert_nlp.sparql @@ -0,0 +1,45 @@ +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 { + ?record aocat:has_derived_subject ?aat . + } + } + WHERE { + GRAPH { + ?record aocat:has_derived_subject ?aat + } + }; + + PREFIX aocat: + PREFIX skos: + INSERT { + GRAPH { + ?aat skos:prefLabel ?label . + } + } + WHERE { + GRAPH { + ?record aocat:has_derived_subject ?aat . + ?aat skos:prefLabel ?label . + } +}; \ No newline at end of file