From ce33e07337207a5b6696dc793da1e185d5d8f628 Mon Sep 17 00:00:00 2001 From: Enrico Ottonello Date: Tue, 15 Feb 2022 11:49:27 +0100 Subject: [PATCH] added primary image url to enable visualization; records inherit agent urls from collection --- .../CYI/ordered_sparql_insert_CYI.sparql | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/CYI/ordered_sparql_insert_CYI.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/CYI/ordered_sparql_insert_CYI.sparql index ad276cf..c13688f 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/CYI/ordered_sparql_insert_CYI.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/CYI/ordered_sparql_insert_CYI.sparql @@ -9,6 +9,7 @@ INSERT { ?coll_value rdf:type ?type . ?coll_value rdfs:label ?label . ?coll_value aocat:has_name ?name . + ?coll_value aocat:has_homepage ?homepage . } } USING @@ -19,6 +20,7 @@ WHERE { ?coll_value rdf:type ?type . ?coll_value rdfs:label ?label . ?coll_value aocat:has_name ?name . + ?coll_value aocat:has_homepage ?homepage . MINUS { ?record aocat:has_creator ?rec_value . } @@ -35,6 +37,7 @@ INSERT { ?coll_value rdf:type ?type . ?coll_value rdfs:label ?label . ?coll_value aocat:has_name ?name . + ?coll_value aocat:has_homepage ?homepage . } } USING @@ -45,6 +48,7 @@ WHERE { ?coll_value rdf:type ?type . ?coll_value rdfs:label ?label . ?coll_value aocat:has_name ?name . + ?coll_value aocat:has_homepage ?homepage . MINUS { ?record aocat:has_publisher ?rec_value . } @@ -61,6 +65,7 @@ INSERT { ?coll_value rdf:type ?type . ?coll_value rdfs:label ?label . ?coll_value aocat:has_name ?name . + ?coll_value aocat:has_homepage ?homepage . } } USING @@ -71,6 +76,7 @@ WHERE { ?coll_value rdf:type ?type . ?coll_value rdfs:label ?label . ?coll_value aocat:has_name ?name . + ?coll_value aocat:has_homepage ?homepage . MINUS { ?record aocat:has_owner ?rec_value . } @@ -229,4 +235,18 @@ WHERE { ?spatial rdf:type aocat:AO_Spatial_Region . ?spatial rdfs:label ?label . ?spatial aocat:has_place_name ?placeName . +}; + +PREFIX aocat: +INSERT { + GRAPH { + ?record aocat:has_primary_visual_component ?visual_component . + } +} +USING +WHERE { + ?record aocat:has_visual_component ?visual_component . + MINUS { + ?record aocat:has_primary_visual_component ?primary_visual_component . + } }; \ No newline at end of file