all not madatory sets of conditions must be set as optional
This commit is contained in:
parent
5c3d50f309
commit
32b91c277d
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||||
|
@ -12,7 +11,7 @@ CONSTRUCT {
|
||||||
?record aoprop:originalId ?originalId .
|
?record aoprop:originalId ?originalId .
|
||||||
?record aoprop:issued ?issued .
|
?record aoprop:issued ?issued .
|
||||||
?record aoprop:modified ?modified .
|
?record aoprop:modified ?modified .
|
||||||
?record aoprop:partOf ?collection .
|
?record aoprop:partOf ?partOf .
|
||||||
?record aoprop:creator ?creator .
|
?record aoprop:creator ?creator .
|
||||||
?creator aoprop:name ?creatorName .
|
?creator aoprop:name ?creatorName .
|
||||||
?creator aoprop:email ?creatorEmail .
|
?creator aoprop:email ?creatorEmail .
|
||||||
|
@ -58,76 +57,50 @@ CONSTRUCT {
|
||||||
?record aoprop:description ?description .
|
?record aoprop:description ?description .
|
||||||
?record aoprop:language ?language .
|
?record aoprop:language ?language .
|
||||||
}
|
}
|
||||||
|
|
||||||
from <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::aat>
|
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::273>
|
||||||
|
|
||||||
where {
|
where {
|
||||||
?record aocat:has_language / skos:prefLabel ?language .
|
?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 .
|
||||||
|
?record aocat:has_title ?title .
|
||||||
|
optional {
|
||||||
|
?creator aocat:has_email ?creatorEmail .
|
||||||
|
}
|
||||||
|
optional {
|
||||||
|
?collection aocat:has_type / skos:prefLabel ?type .
|
||||||
|
}
|
||||||
optional {
|
optional {
|
||||||
{
|
|
||||||
?record aocat:has_native_subject ?nativeSubject .
|
?record aocat:has_native_subject ?nativeSubject .
|
||||||
?nativeSubject skos:prefLabel ?nativeSubjectPrefLabel .
|
?nativeSubject skos:prefLabel ?nativeSubjectPrefLabel .
|
||||||
optional {
|
optional {
|
||||||
{
|
|
||||||
?nativeSubject skos:exactMatch ?aatSubjectsId .
|
?nativeSubject skos:exactMatch ?aatSubjectsId .
|
||||||
}
|
}
|
||||||
union
|
optional {
|
||||||
{
|
|
||||||
?nativeSubject skos:closeMatch ?aatSubjectsId .
|
?nativeSubject skos:closeMatch ?aatSubjectsId .
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
optional {
|
||||||
union
|
|
||||||
{
|
|
||||||
?record aocat:has_creator ?creator .
|
|
||||||
?creator aocat:has_name ?creatorName .
|
|
||||||
}
|
|
||||||
union
|
|
||||||
{
|
|
||||||
?record aocat:has_creator ?creator .
|
|
||||||
?creator aocat:has_email ?creatorEmail .
|
|
||||||
}
|
|
||||||
union
|
|
||||||
{
|
|
||||||
?record aocat:has_access_rights ?accessRights .
|
|
||||||
}
|
|
||||||
union
|
|
||||||
{
|
|
||||||
?record aocat:has_description ?description .
|
?record aocat:has_description ?description .
|
||||||
}
|
}
|
||||||
union
|
optional {
|
||||||
{
|
|
||||||
?record aocat:has_access_policy / rdfs:label ?accessPolicy .
|
?record aocat:has_access_policy / rdfs:label ?accessPolicy .
|
||||||
}
|
}
|
||||||
union
|
optional {
|
||||||
{
|
|
||||||
?record aocat:has_landing_page / rdfs:label ?landingPage .
|
?record aocat:has_landing_page / rdfs:label ?landingPage .
|
||||||
}
|
}
|
||||||
union
|
optional {
|
||||||
{
|
|
||||||
?record aocat:has_temporal_coverage ?temporal .
|
?record aocat:has_temporal_coverage ?temporal .
|
||||||
}
|
}
|
||||||
union
|
optional {
|
||||||
{
|
|
||||||
?record aocat:has_temporal_coverage ?temporal .
|
?record aocat:has_temporal_coverage ?temporal .
|
||||||
?temporal aocat:has_period / skos:prefLabel ?temporalPeriodName .
|
?temporal aocat:has_period / skos:prefLabel ?temporalPeriodName .
|
||||||
}
|
optional {
|
||||||
union
|
|
||||||
{
|
|
||||||
?record aocat:has_temporal_coverage ?temporal .
|
|
||||||
?temporal aocat:from ?temporalFrom .
|
?temporal aocat:from ?temporalFrom .
|
||||||
}
|
|
||||||
union
|
|
||||||
{
|
|
||||||
?record aocat:has_temporal_coverage ?temporal .
|
|
||||||
?temporal aocat:until ?temporalUntil .
|
?temporal aocat:until ?temporalUntil .
|
||||||
}
|
}
|
||||||
union
|
|
||||||
{
|
|
||||||
?record aocat:has_title ?title .
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
select *
|
select *
|
||||||
|
@ -141,64 +114,39 @@ where {
|
||||||
?legalResponsible aocat:has_name ?legalResponsibleName .
|
?legalResponsible aocat:has_name ?legalResponsibleName .
|
||||||
?collection aocat:has_owner ?owner .
|
?collection aocat:has_owner ?owner .
|
||||||
?owner aocat:has_name ?ownerName .
|
?owner aocat:has_name ?ownerName .
|
||||||
optional {
|
|
||||||
{
|
|
||||||
?collection aocat:has_contributor / aocat:has_email ?contributorEmail .
|
|
||||||
}
|
|
||||||
union
|
|
||||||
{
|
|
||||||
?collection aocat:has_responsible / aocat:has_email ?legalResponsibleEmail .
|
|
||||||
}
|
|
||||||
union
|
|
||||||
{
|
|
||||||
?collection aocat:has_owner / aocat:has_email ?ownerEmail .
|
|
||||||
}
|
|
||||||
union
|
|
||||||
{
|
|
||||||
?collection aocat:has_publisher ?publisher .
|
?collection aocat:has_publisher ?publisher .
|
||||||
?publisher aocat:has_name ?publisherName .
|
?publisher aocat:has_name ?publisherName .
|
||||||
|
?collection aocat:has_access_rights ?accessRights .
|
||||||
|
?collection aocat:has_ARIADNE_subject ?archeologicalResourceType .
|
||||||
|
?archeologicalResourceType skos:prefLabel ?archeologicalResourceTypeName .
|
||||||
|
optional {
|
||||||
|
?contributor aocat:has_email ?contributorEmail .
|
||||||
|
}
|
||||||
|
optional {
|
||||||
|
?legalResponsible aocat:has_email ?legalResponsibleEmail .
|
||||||
|
}
|
||||||
|
optional {
|
||||||
|
?owner aocat:has_email ?ownerEmail .
|
||||||
|
}
|
||||||
optional {
|
optional {
|
||||||
?publisher aocat:has_email ?publisherEmail .
|
?publisher aocat:has_email ?publisherEmail .
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
union
|
|
||||||
{
|
|
||||||
?collection aocat:has_ARIADNE_subject ?archeologicalResourceType .
|
|
||||||
?archeologicalResourceType skos:prefLabel ?archeologicalResourceTypeName .
|
|
||||||
}
|
}
|
||||||
union
|
|
||||||
{
|
|
||||||
?collection aocat:has_type / skos:prefLabel ?type .
|
|
||||||
}
|
|
||||||
union
|
|
||||||
{
|
|
||||||
?collection aocat:has_access_rights ?accessRights .
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
union
|
|
||||||
{
|
{
|
||||||
select *
|
select *
|
||||||
where {
|
where {
|
||||||
optional {
|
|
||||||
{
|
|
||||||
?record aocat:has_spatial_coverage ?spatial .
|
?record aocat:has_spatial_coverage ?spatial .
|
||||||
?spatial aocat:has_place_name ?spatialPlaceName .
|
?spatial aocat:has_place_name ?spatialPlaceName .
|
||||||
optional {
|
optional {
|
||||||
?spatial aocat:has_coordinate_system ?spatialCoordinateSystem .
|
?spatial aocat:has_coordinate_system ?spatialCoordinateSystem .
|
||||||
}
|
}
|
||||||
}
|
optional {
|
||||||
union
|
|
||||||
{
|
|
||||||
?record aocat:has_spatial_coverage ?spatial .
|
|
||||||
?spatial aocat:has_latitude ?spatialLocationLat ;
|
?spatial aocat:has_latitude ?spatialLocationLat ;
|
||||||
aocat:has_longitude ?spatialLocationLon .
|
aocat:has_longitude ?spatialLocationLon .
|
||||||
BIND(uri(concat('https://www.ariadne-infrastructure.eu/property/location/', md5(concat(str(?spatialLocationLat), str(?spatialLocationLon))))) as ?location)
|
BIND(uri(concat('https://www.ariadne-infrastructure.eu/property/location/', md5(concat(str(?spatialLocationLat), str(?spatialLocationLon))))) as ?location)
|
||||||
}
|
}
|
||||||
union
|
optional {
|
||||||
{
|
|
||||||
?record aocat:has_spatial_coverage ?spatial .
|
|
||||||
?spatial aocat:has_bounding_box_max_lat ?spatialLocationBBMaxLat ;
|
?spatial aocat:has_bounding_box_max_lat ?spatialLocationBBMaxLat ;
|
||||||
aocat:has_bounding_box_max_lon ?spatialLocationBBMaxLon ;
|
aocat:has_bounding_box_max_lon ?spatialLocationBBMaxLon ;
|
||||||
aocat:has_bounding_box_min_lat ?spatialLocationBBMinLat ;
|
aocat:has_bounding_box_min_lat ?spatialLocationBBMinLat ;
|
||||||
|
@ -207,7 +155,6 @@ where {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
BIND("organization" as ?contributorType) .
|
BIND("organization" as ?contributorType) .
|
||||||
BIND("organization" as ?publisherType) .
|
BIND("organization" as ?publisherType) .
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue