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 928cc74..acefa14 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 @@ -41,13 +41,11 @@ CONSTRUCT { ?spatialRegionBox aoprop:boxMaxLon ?spatialLocationBBMaxLon . ?spatialRegionBox aoprop:boxMinLat ?spatialLocationBBMinLat . ?spatialRegionBox aoprop:boxMinLon ?spatialLocationBBMinLon . -%record aoprop:uri ?temporal . -?temporal aoprop:periodName ?temporalPeriodName . -?temporal aoprop:from ?temporalFrom . -?temporal aoprop:until ?temporalUntil . -?temporal aoprop:uri ?temporal . %record aoprop:uri ?temporalNative . ?temporalNative aoprop:periodName ?temporalNativePeriodName . +?temporalNative aoprop:from ?temporalFrom . +?temporalNative aoprop:until ?temporalUntil . +?temporalNative aoprop:uri ?temporalNative . %record aoprop:archeologicalResourceType ?archeologicalResourceType . ?archeologicalResourceType aoprop:name ?archeologicalResourceTypeName . %record aoprop:resourceType ?resourceType . @@ -101,15 +99,12 @@ where { %record aocat:has_landing_page / rdfs:label ?landingPage . } optional { - %record aocat:has_temporal_coverage ?temporalNative . - ?temporalNative aocat:has_native_period / skos:prefLabel ?temporalNativePeriodName . - } - optional { - %record aocat:has_temporal_coverage ?temporal . - ?temporal aocat:has_period / skos:prefLabel ?temporalPeriodName . + %record aocat:has_temporal_coverage ?temporalCoverage . + ?temporalCoverage aocat:has_native_period ?temporalNative . + ?temporalNative skos:prefLabel ?temporalNativePeriodName . optional { - ?temporal aocat:from ?temporalFrom . - ?temporal aocat:until ?temporalUntil . + ?temporalNative aocat:from ?temporalFrom . + ?temporalNative aocat:until ?temporalUntil . } }