diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/AARHUS/ordered_sparql_insert_dime.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/AARHUS/ordered_sparql_insert_dime.sparql index aec7707..5387eef 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/AARHUS/ordered_sparql_insert_dime.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/AARHUS/ordered_sparql_insert_dime.sparql @@ -141,3 +141,29 @@ WHERE { } }; + PREFIX aocat: + + INSERT { + GRAPH { + ?record aocat:has_derived_subject ?aat . + } + } + USING + WHERE { + ?record aocat:has_derived_subject ?aat . + }; + + PREFIX aocat: + PREFIX skos: + + INSERT { + GRAPH { + ?derivedSubject skos:prefLabel ?label . + } + } + USING + WHERE { + ?record aocat:has_derived_subject ?derivedSubject . + ?derivedSubject skos:prefLabel ?label . + }; + diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/IAVP/ordered_sparql_insert_IAVP.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/IAVP/ordered_sparql_insert_IAVP.sparql new file mode 100644 index 0000000..824cf5c --- /dev/null +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/IAVP/ordered_sparql_insert_IAVP.sparql @@ -0,0 +1,77 @@ +PREFIX aocat: +PREFIX rdf: +PREFIX rdfs: +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: +PREFIX rdf: +PREFIX rdfs: +INSERT { + GRAPH { + ?s aocat:has_publisher ?publisher . + ?publisher aocat:has_email ?email . + ?publisher aocat:has_homepage ?homepage . + ?publisher aocat:has_name ?name . + ?publisher rdfs:label ?label . + ?publisher rdf:type + + } +} +WHERE { + GRAPH { + ?s rdf:type . + ?s aocat:has_publisher ?publisher . + ?publisher aocat:has_email ?email . + ?publisher aocat:has_homepage ?homepage . + ?publisher aocat:has_name ?name . + ?publisher rdfs:label ?label . + } +}; + + + +PREFIX aocat: +PREFIX skos: +INSERT { + GRAPH { + ?record aocat:has_derived_subject ?aat . + } +} +WHERE { + GRAPH { + ?record aocat:has_native_subject ?ns. + GRAPH { + { + ?ns skos:closeMatch ?aat . + } + union + { + ?ns skos:exactMatch ?aat . + } + union + { + ?ns skos:narrowMatch ?aat . + } + union + { + ?ns skos:broadMatch ?aat . + } + } + } +};