diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/read_collection_data_template.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/read_collection_data_template.sparql index 9df7d5a..8e24f48 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/read_collection_data_template.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/read_collection_data_template.sparql @@ -64,7 +64,7 @@ CONSTRUCT { ?temporal aoprop:periodOName ?temporalPeriodName . ?temporal aoprop:from ?temporalFrom . ?temporal aoprop:until ?temporalUntil . -?temporal aoprop:uri ?temporal . +?temporal aoprop:uri ?periodOURI . %record aoprop:temporalNative ?temporalNative . ?temporalNative aoprop:nativePeriodName ?temporalNativePeriodName . ?temporalNative aoprop:nativeFrom ?temporalNativeFrom . @@ -153,14 +153,14 @@ where { optional { graph { - select distinct ?temporal ?temporalPeriodName ?temporalFrom ?temporalUntil + select distinct ?temporal ?temporalPeriodName ?temporalFrom ?temporalUntil ?periodOURI where { %record aocat:has_temporal_coverage ?temporal . graph { - ?temporal aocat:has_period ?label . + ?temporal aocat:has_period ?periodOURI . graph { - ?label skos:prefLabel ?origTemporalPeriodName . + ?periodOURI skos:prefLabel ?origTemporalPeriodName . } optional { ?temporal aocat:from ?temporalFrom . diff --git a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/read_record_data_template.sparql b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/read_record_data_template.sparql index bd611ac..f0fbbb3 100644 --- a/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/read_record_data_template.sparql +++ b/dnet-ariadneplus-graphdb-publisher/src/main/resources/eu/dnetlib/ariadneplus/sparql/read_record_data_template.sparql @@ -66,7 +66,7 @@ CONSTRUCT { ?temporal aoprop:periodOName ?temporalPeriodName . ?temporal aoprop:from ?temporalFrom . ?temporal aoprop:until ?temporalUntil . -?temporal aoprop:uri ?temporal . +?temporal aoprop:uri ?periodOURI . %record aoprop:temporalNative ?temporalNative . ?temporalNative aoprop:nativePeriodName ?temporalNativePeriodName . ?temporalNative aoprop:nativeFrom ?temporalNativeFrom . @@ -167,14 +167,14 @@ where { optional { graph { - select distinct ?temporal ?temporalPeriodName ?temporalFrom ?temporalUntil + select distinct ?temporal ?temporalPeriodName ?temporalFrom ?temporalUntil ?periodOURI where { %record aocat:has_temporal_coverage ?temporal . graph { - ?temporal aocat:has_period ?label . + ?temporal aocat:has_period ?periodOURI . graph { - ?label skos:prefLabel ?origTemporalPeriodName . + ?periodOURI skos:prefLabel ?origTemporalPeriodName . } optional { ?temporal aocat:from ?temporalFrom .