temporal coverage joined with periodO data that must be directly imported in graphDb in turtle format together with periodO mapping

This commit is contained in:
Enrico Ottonello 2020-03-20 13:01:54 +01:00
parent ef42eb551a
commit 7ae6d400b6
1 changed files with 14 additions and 7 deletions

View File

@ -4,6 +4,7 @@ PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX aoprop: <https://www.ariadne-infrastructure.eu/property/>
PREFIX onto: <http://www.ontotext.com/>
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
PREFIX time: <http://www.w3.org/2006/time#>
CONSTRUCT {
?record aoprop:resourcetype "AriadneCatalogEntry" .
@ -41,8 +42,7 @@ CONSTRUCT {
?spatialRegionBox aoprop:boxMaxLon ?spatialLocationBBMaxLon .
?spatialRegionBox aoprop:boxMinLat ?spatialLocationBBMinLat .
?spatialRegionBox aoprop:boxMinLon ?spatialLocationBBMinLon .
?record aoprop:temporal ?temporal .
?temporal aoprop:uri ?temporal .
?record aoprop:uri ?temporal .
?temporal aoprop:periodName ?temporalPeriodName .
?temporal aoprop:from ?temporalFrom .
?temporal aoprop:until ?temporalUntil .
@ -58,10 +58,12 @@ CONSTRUCT {
?record aoprop:language ?language .
}
from <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::aat>
from <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::271>
from <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::periodo>
from <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::periodO-En-UK>
from <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::420_event>
where {
?record aocat:has_language / skos:prefLabel ?language .
?record aocat:has_original_id ?originalId .
?record aocat:has_original_id ?originalId .
?record aocat:is_part_of ?partOf .
?record aocat:has_creator ?creator .
?creator aocat:has_name ?creatorName .
@ -93,13 +95,18 @@ where {
}
optional {
?record aocat:has_temporal_coverage ?temporal .
?temporal aocat:has_period / rdfs:label ?temporalPeriodName .
}
optional {
?record aocat:has_temporal_coverage ?temporal .
?temporal aocat:has_period / skos:prefLabel ?temporalPeriodName .
?temporal aocat:has_native_period ?nativePeriod .
?nativePeriod skos:prefLabel ?temporalPeriodName .
optional {
?temporal aocat:from ?temporalFrom .
?temporal aocat:until ?temporalUntil .
?nativePeriod skos:exactMatch ?periodORef .
?periodORef time:intervalStartedBy ?intervalStartedBy .
?intervalStartedBy skos:prefLabel ?temporalFrom .
?periodORef time:intervalFinishedBy ?intervalFinishedBy .
?intervalFinishedBy skos:prefLabel ?temporalUntil .
}
}
{