diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/INRAP/ordered_sparql_insert_dolia_TEST.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/INRAP/ordered_sparql_insert_dolia_TEST.sparql index f0bffbc..7cd985e 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/INRAP/ordered_sparql_insert_dolia_TEST.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrich/INRAP/ordered_sparql_insert_dolia_TEST.sparql @@ -323,4 +323,29 @@ WHERE { bind (IRI(concat( "https://ariadne-infrastructure.eu/aocat/Concept/INRAP/", ucase(strafter(str(?native_subject),"Inrap/")))) as ?uppercase_native_subject) filter(?uppercase_native_subject=?aat_native_subject) } -}; \ No newline at end of file +}; + +PREFIX skos: + PREFIX aocat: + PREFIX time: + PREFIX dcterms: + INSERT { + GRAPH { + ?temporal aocat:has_period ?periodO . + ?temporal aocat:from ?temporalFrom . + ?temporal aocat:until ?temporalUntil . + } + } + WHERE { + GRAPH { + ?temporal aocat:has_native_period ?native_period . + ?native_period skos:prefLabel ?p_label . + optional { + GRAPH { + ?periodO skos:altLabel ?p_label . + ?periodO time:intervalStartedBy / time:hasDateTimeDescription / time:year ?temporalFrom . + ?periodO time:intervalFinishedBy / time:hasDateTimeDescription / time:year ?temporalUntil . + } + } + } + }; \ No newline at end of file