added spatial info inherited from collection

This commit is contained in:
Enrico Ottonello 2022-09-27 09:43:02 +02:00
parent 17dc0276ab
commit 49cc757b69
2 changed files with 65 additions and 0 deletions

View File

@ -17,3 +17,41 @@ INSERT {
}
}
};
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX time: <http://www.w3.org/2006/time#>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::tdar::periodoplus> {
?temporal aocat:has_period ?period .
?temporal aocat:from ?from .
?temporal aocat:until ?until .
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::tdar::CollectionInfo> {
?temporal aocat:has_native_period ?native_period .
?native_period rdfs:label ?native_label .
?temporal aocat:from ?from .
?temporal aocat:until ?until .
?temporal aocat:has_period ?period .
}
};
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX time: <http://www.w3.org/2006/time#>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::tdar::periodo> {
?native_period skos:prefLabel ?native_label .
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::tdar::CollectionInfo> {
?temporal aocat:has_native_period ?native_period .
?native_period rdfs:label ?native_label .
?temporal aocat:from ?from .
?temporal aocat:until ?until .
?temporal aocat:has_period ?period .
}
};

View File

@ -185,6 +185,33 @@ WHERE {
}
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::tdar::oai> {
?s aocat:has_spatial_coverage ?collSpatial .
?collSpatial rdf:type ?collSpatialType .
?collSpatial rdfs:label ?collSpatialLabel .
?collSpatial aocat:has_place_name ?collSpatialName .
}
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::tdar::oai>
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::tdar::CollectionInfo>
WHERE {
?s rdf:type aocat:AO_Individual_Data_Resource .
?s aocat:is_part_of ?collection .
?collection aocat:has_spatial_coverage ?collSpatial .
?collSpatial rdf:type ?collSpatialType .
?collSpatial rdfs:label ?collSpatialLabel .
?collSpatial aocat:has_place_name ?collSpatialName .
MINUS {
?s rdf:type aocat:AO_Individual_Data_Resource .
?s aocat:has_spatial_coverage ?spatialRegion .
?spatialRegion aocat:has_place_name ?placeName .
}
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>