diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/INFN/ordered_sparql_insert_infn.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/INFN/ordered_sparql_insert_infn.sparql new file mode 100644 index 0000000..18833db --- /dev/null +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/INFN/ordered_sparql_insert_infn.sparql @@ -0,0 +1,86 @@ +PREFIX aocat: +PREFIX skos: +PREFIX rdf: +PREFIX rdfs: +INSERT { + GRAPH { + ?s aocat:was_issued ?created_on . + ?s aocat:was_modified ?created_on . + } +} +USING +WHERE { + ?s rdf:type aocat:AO_Collection . + ?s aocat:was_created_on ?created_on . + MINUS { + ?s rdf:type aocat:AO_Collection . + ?s aocat:was_created_on ?created_on . + ?s aocat:was_issued ?issued . + ?s aocat:was_modified ?modified . + } +}; + +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 dcterms: +INSERT { + GRAPH { + ?periodO ?pred ?o . + ?o ?pred2 ?o2 . + ?o2 ?pred3 ?o3 . + } + } + WHERE { + GRAPH { + ?periodO "Italy less Sicily, Sardinia, Tuscany, Umbria" . + ?periodO ?pred ?o . + optional { + ?o ?pred2 ?o2 . + optional { + ?o2 ?pred3 ?o3 . + } + } + } + }; + +PREFIX skos: +PREFIX aocat: +PREFIX time: +PREFIX dcterms: +INSERT { + GRAPH { + ?temporal aocat:has_period ?period . + ?temporal aocat:from ?temporalFrom . + ?temporal aocat:until ?temporalUntil . + } +} +WHERE { +GRAPH { + ?temporal aocat:has_period ?period . + optional { + GRAPH { + ?period skos:altLabel ?native_label . + ?period time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom . + ?period time:intervalFinishedBy / time:hasDateTimeDescription / time:year ?temporalUntil . + } + } + } +}; \ No newline at end of file