updated construct query for temporals

This commit is contained in:
Alessia Bardi 2020-10-09 11:36:05 +02:00
parent 47f46009e1
commit a0b3e27645
1 changed files with 8 additions and 13 deletions

View File

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