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