diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/05_insert_periodo_enrichment_template.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/05_insert_periodo_enrichment_template.sparql index 8e31fc0..d0b7111 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/05_insert_periodo_enrichment_template.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/05_insert_periodo_enrichment_template.sparql @@ -49,3 +49,46 @@ } } }; + + # if there is no periodO, but you have the dates then you want to put them in the temporal index fields. + # Add from/until and native period in the periodo graphs: + + : + ?temporal aocat:has_period ?periodOURI . + ?temporal aocat:from ?temporalFrom . + ?temporal aocat:until ?temporalUntil . + + + ?periodOURI skos:prefLabel ?origTemporalPeriodName . + + +PREFIX aocat: + INSERT { + GRAPH { + ?temporal aocat:has_period ?nativePeriod . + ?temporal aocat:from ?temporalFrom . + ?temporal aocat:until ?temporalUntil . + } + } + WHERE { + GRAPH { + ?temporal aocat:has_native_period ?nativePeriod . + ?temporal aocat:from ?temporalFrom . + ?temporal aocat:until ?temporalUntil . + } + }; + + PREFIX aocat: + PREFIX rdfs: + PREFIX skos: + INSERT { + GRAPH { + ?nativePeriod skos:prefLabel ?periodLabel . + } + } + WHERE { + GRAPH { + ?temporal aocat:has_native_period ?nativePeriod . + ?nativePeriod rdfs:label ?periodLabel . + } + }; \ No newline at end of file diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrichment-graphs-info.txt b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrichment-graphs-info.txt index adbaf11..5aa696d 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrichment-graphs-info.txt +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/enrichment-graphs-info.txt @@ -27,4 +27,9 @@ For the subjects: %record aocat:has_derived_subject ?derivedSubject . -?derivedSubject skos:prefLabel ?origDerivedSubjectPrefLabel . \ No newline at end of file +?derivedSubject skos:prefLabel ?origDerivedSubjectPrefLabel . + + +To update period index: +https://ariadne-portal-staging.d4science.org/api/updatePeriods?id=feb01aaac066417281fb1cbed7bea694a611a462 +https://portal.ariadne-infrastructure.eu/api/updatePeriods?id=feb01aaac066417281fb1cbed7bea694a611a462