diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu.dnetlib.ariadneplus.sparql.enrich.FI/ordered_sparql_insert_FI_Isleif.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu.dnetlib.ariadneplus.sparql.enrich.FI/ordered_sparql_insert_FI_Isleif.sparql new file mode 100644 index 0000000..ef6895c --- /dev/null +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu.dnetlib.ariadneplus.sparql.enrich.FI/ordered_sparql_insert_FI_Isleif.sparql @@ -0,0 +1,82 @@ +PREFIX aocat: +PREFIX rdf: +PREFIX skos: + +# INSERT DEFAULTS FOR RECORDS + +INSERT { + GRAPH ::> { + ?s aocat:has_native_subject /NOT_PROVIDED> . + /NOT_PROVIDED> skos:prefLabel "Not provided" . + } +} +WHERE { + GRAPH ::> { + ?s rdf:type aocat:AO_Individual_Data_Resource . + MINUS { + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:has_native_subject ?ns . + } + } +}; +INSERT { + GRAPH ::> { + ?s aocat:has_language . + skos:prefLabel "und" . + } +} +WHERE { + GRAPH ::> { + ?s rdf:type aocat:AO_Individual_Data_Resource . + MINUS { + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:has_language ?ns . + } + } +}; +INSERT { + GRAPH ::> { + ?s aocat:has_creator /NOT_PROVIDED> . + /NOT_PROVIDED> aocat:has_name "Not provided" . + } +} +WHERE { + GRAPH ::> { + ?s rdf:type aocat:AO_Individual_Data_Resource . + MINUS { + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:has_creator ?creator . + } + } +}; + +INSERT { + GRAPH ::> { + ?s aocat:has_title "Title not provided" . + } +} +WHERE { + GRAPH ::> { + ?s rdf:type aocat:AO_Individual_Data_Resource . + MINUS { + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:has_title ?title . + } + } +}; + +INSERT { + GRAPH ::> { + ?s aocat:has_type . + skos:prefLabel "provided record" . + } +} +WHERE { + GRAPH ::> { + ?s rdf:type aocat:AO_Individual_Data_Resource . + MINUS { + ?s rdf:type aocat:AO_Individual_Data_Resource . + ?s aocat:has_type . + } + } +}; \ No newline at end of file