restored query template used for retrieving record from graphDB

This commit is contained in:
Enrico Ottonello 2021-09-01 17:21:22 +02:00
parent ac01750580
commit e106393e07
1 changed files with 63 additions and 63 deletions

View File

@ -7,97 +7,97 @@ PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
PREFIX time: <http://www.w3.org/2006/time#>
CONSTRUCT {
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:rdfType "Record" .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:identifier <https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:originalId ?originalId .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:issued ?issued .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:modified ?modified .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:partOf ?partOf .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:creator ?creator .
%record aoprop:rdfType "Record" .
%record aoprop:identifier %record .
%record aoprop:originalId ?originalId .
%record aoprop:issued ?issued .
%record aoprop:modified ?modified .
%record aoprop:partOf ?partOf .
%record aoprop:creator ?creator .
?creator aoprop:name ?creatorName .
?creator aoprop:email ?creatorEmail .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:contributor ?contributor .
%record aoprop:contributor ?contributor .
?contributor aoprop:name ?contributorName .
?contributor aoprop:email ?contributorEmail .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:legalResponsible ?legalResponsible .
%record aoprop:legalResponsible ?legalResponsible .
?legalResponsible aoprop:name ?legalResponsibleName .
?legalResponsible aoprop:email ?legalResponsibleEmail .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:owner ?owner .
%record aoprop:owner ?owner .
?owner aoprop:name ?ownerName .
?owner aoprop:email ?ownerEmail .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:publisher ?publisher .
%record aoprop:publisher ?publisher .
?publisher aoprop:name ?publisherName .
?publisher aoprop:email ?publisherEmail .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:accessPolicy ?accessPolicy .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:accessRights ?accessRights .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:landingPage ?landingPage .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:spatialRegion ?spatialRegion .
%record aoprop:accessPolicy ?accessPolicy .
%record aoprop:accessRights ?accessRights .
%record aoprop:landingPage ?landingPage .
%record aoprop:spatialRegion ?spatialRegion .
?spatialRegion aoprop:placeName ?spatialPlaceName .
?spatialRegion aoprop:spatialCoordinateSystem ?spatialCoordinateSystem .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:spatialRegionPoint ?spatialRegionPoint .
%record aoprop:spatialRegionPoint ?spatialRegionPoint .
?spatialRegionPoint aoprop:lat ?spatialLocationLat .
?spatialRegionPoint aoprop:lon ?spatialLocationLon .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:spatialRegionBox ?spatialRegionBox .
%record aoprop:spatialRegionBox ?spatialRegionBox .
?spatialRegionBox aoprop:boxMaxLat ?spatialLocationBBMaxLat .
?spatialRegionBox aoprop:boxMaxLon ?spatialLocationBBMaxLon .
?spatialRegionBox aoprop:boxMinLat ?spatialLocationBBMinLat .
?spatialRegionBox aoprop:boxMinLon ?spatialLocationBBMinLon .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:temporal ?temporal .
%record aoprop:temporal ?temporal .
?temporal aoprop:periodOName ?temporalPeriodName .
?temporal aoprop:from ?temporalFrom .
?temporal aoprop:until ?temporalUntil .
?temporal aoprop:uri ?temporal .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:temporal ?temporalNative .
%record aoprop:temporal ?temporalNative .
?temporalNative aoprop:nativePeriodName ?temporalNativePeriodName .
?temporalNative aoprop:from ?temporalNativeFrom .
?temporalNative aoprop:until ?temporalNativeUntil .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:archeologicalResourceType ?archeologicalResourceType .
%record aoprop:archeologicalResourceType ?archeologicalResourceType .
?archeologicalResourceType aoprop:name ?archeologicalResourceTypeName .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:resourceType ?resourceType .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:nativeSubject ?nativeSubject .
%record aoprop:resourceType ?resourceType .
%record aoprop:nativeSubject ?nativeSubject .
?nativeSubject aoprop:prefLabel ?nativeSubjectPrefLabel .
?nativeSubject aoprop:rdfAbout ?nativeSubject .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:derivedSubject ?derivedSubject .
%record aoprop:derivedSubject ?derivedSubject .
?derivedSubject aoprop:prefLabel ?derivedSubjectPrefLabel .
?derivedSubject aoprop:source "Getty AAT" .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:aatSubjects ?derivedSubject .
%record aoprop:aatSubjects ?derivedSubject .
?derivedSubject aoprop:id ?derivedSubject .
?derivedSubject aoprop:label ?derivedSubjectPrefLabel .
?derivedSubject aoprop:lang ?aatSubjectsLang .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:title ?title .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:description ?description .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aoprop:language ?language .
%record aoprop:title ?title .
%record aoprop:description ?description .
%record aoprop:language ?language .
}
where {
graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fasti::fieldwork> {
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_language / skos:prefLabel ?language .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_original_id ?originalId .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:is_part_of ?partOf .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_creator ?creator .
graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::%datasource::%collectionId> {
%record aocat:has_language / skos:prefLabel ?language .
%record aocat:has_original_id ?originalId .
%record aocat:is_part_of ?partOf .
%record aocat:has_creator ?creator .
?creator aocat:has_name ?creatorName .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_title ?title .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_type / skos:prefLabel ?resourceType .
%record aocat:has_title ?title .
%record aocat:has_type / skos:prefLabel ?resourceType .
optional {
?creator aocat:has_email ?creatorEmail .
}
optional {
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_description ?description .
%record aocat:has_description ?description .
}
optional {
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_access_policy / rdfs:label ?accessPolicy .
%record aocat:has_access_policy / rdfs:label ?accessPolicy .
}
optional {
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_landing_page / rdfs:label ?landingPage .
%record aocat:has_landing_page / rdfs:label ?landingPage .
}
}
optional {
graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fasti::fieldwork> {
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_temporal_coverage ?temporalNative .
graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::%datasource::%collectionId> {
%record aocat:has_temporal_coverage ?temporalNative .
?temporalNative aocat:has_native_period ?nativeLabel .
?nativeLabel skos:prefLabel ?temporalNativePeriodName .
}
graph <https://ariadne-infrastructure.eu/ariadneplus::fasti::periodoplus> {
graph <https://ariadne-infrastructure.eu/ariadneplus::%datasource::periodoplus> {
optional {
?temporalNative aocat:from ?temporalNativeFrom .
?temporalNative aocat:until ?temporalNativeUntil .
@ -107,12 +107,12 @@ where {
optional {
graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fasti::fieldwork> {
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_temporal_coverage ?temporal .
graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::%datasource::%collectionId> {
%record aocat:has_temporal_coverage ?temporal .
}
graph <https://ariadne-infrastructure.eu/ariadneplus::fasti::periodoplus> {
graph <https://ariadne-infrastructure.eu/ariadneplus::%datasource::periodoplus> {
?temporal aocat:has_period ?label .
graph <https://ariadne-infrastructure.eu/ariadneplus::fasti::periodo> {
graph <https://ariadne-infrastructure.eu/ariadneplus::%datasource::periodo> {
?label skos:prefLabel ?temporalPeriodName .
}
optional {
@ -122,22 +122,22 @@ where {
}
}
graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fasti::fieldwork> {
graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::%datasource::%collectionId> {
{
select *
where {
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:was_issued ?issued .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:was_modified ?modified .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_contributor ?contributor .
%record aocat:was_issued ?issued .
%record aocat:was_modified ?modified .
%record aocat:has_contributor ?contributor .
?contributor aocat:has_name ?contributorName .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_responsible ?legalResponsible .
%record aocat:has_responsible ?legalResponsible .
?legalResponsible aocat:has_name ?legalResponsibleName .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_owner ?owner .
%record aocat:has_owner ?owner .
?owner aocat:has_name ?ownerName .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_publisher ?publisher .
%record aocat:has_publisher ?publisher .
?publisher aocat:has_name ?publisherName .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_access_rights ?accessRights .
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_ARIADNE_subject ?archeologicalResourceType .
%record aocat:has_access_rights ?accessRights .
%record aocat:has_ARIADNE_subject ?archeologicalResourceType .
?archeologicalResourceType skos:prefLabel ?archeologicalResourceTypeName .
optional {
?contributor aocat:has_email ?contributorEmail .
@ -155,23 +155,23 @@ where {
}
}
graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fasti::fieldwork> {
graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::%datasource::%collectionId> {
{
select *
where {
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_spatial_coverage ?spatialRegion .
%record aocat:has_spatial_coverage ?spatialRegion .
?spatialRegion aocat:has_place_name ?spatialPlaceName .
optional {
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_spatial_coverage ?spatialRegion .
%record aocat:has_spatial_coverage ?spatialRegion .
?spatialRegion aocat:has_coordinate_system ?spatialCoordinateSystem .
}
optional {
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_spatial_coverage ?spatialRegionPoint .
%record aocat:has_spatial_coverage ?spatialRegionPoint .
?spatialRegionPoint aocat:has_latitude ?spatialLocationLat ;
aocat:has_longitude ?spatialLocationLon .
}
optional {
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_spatial_coverage ?spatialRegionBox .
%record aocat:has_spatial_coverage ?spatialRegionBox .
?spatialRegionBox aocat:has_bounding_box_max_lat ?spatialLocationBBMaxLat ;
aocat:has_bounding_box_max_lon ?spatialLocationBBMaxLon ;
aocat:has_bounding_box_min_lat ?spatialLocationBBMinLat ;
@ -181,23 +181,23 @@ where {
}
}
graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fasti::fieldwork> {
graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::%datasource::%collectionId> {
{
select *
where {
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_native_subject ?nativeSubject .
%record aocat:has_native_subject ?nativeSubject .
?nativeSubject skos:prefLabel ?nativeSubjectPrefLabel .
}
}
}
graph <https://ariadne-infrastructure.eu/ariadneplus::fasti::aatplus> {
graph <https://ariadne-infrastructure.eu/ariadneplus::%datasource::aatplus> {
{
select *
where {
optional {
<https://ariadne-infrastructure.eu/aocat/Resource/FASTIONLINE/60E61892-3EE1-3F40-AA44-74255BDFAB7E> aocat:has_derived_subject ?derivedSubject .
graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::fasti::aat> {
%record aocat:has_derived_subject ?derivedSubject .
graph <https://ariadne-infrastructure.eu/api_________::ariadne_plus::%datasource::aat> {
?derivedSubject skos:prefLabel ?derivedSubjectPrefLabel .
}
}