separete query for different fields to be inherited from CENIEH collection and updated date

This commit is contained in:
Alessia Bardi 2023-05-31 11:20:06 +02:00
parent 331d09daaa
commit 4f3a329bae
1 changed files with 74 additions and 7 deletions

View File

@ -26,7 +26,7 @@ PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::cenieh::cir> {
?s aocat:was_issued "2022-01-24"^^xsd:dateTime .
?s aocat:was_modified "2022-01-24"^^xsd:dateTime .
?s aocat:was_modified "2023-05-30"^^xsd:dateTime .
}
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::cenieh::cir>
@ -147,11 +147,28 @@ PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
MINUS {
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Collection> .
?s aocat:has_original_id ?tc .
?s aocat:has_original_id ?id .
}
}
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::cenieh::cir> {
?s aocat:has_original_id "not provided" .
}
}
WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::cenieh::cir> {
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Individual_Data_Resource> .
MINUS {
?s rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Individual_Data_Resource> .
?s aocat:has_original_id ?id .
}
}
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
@ -219,18 +236,68 @@ WHERE {
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::cenieh::cir> {
?record aocat:has_ARIADNE_subject ?archeologicalResourceType .
?record aocat:has_owner ?owner .
?record aocat:has_responsible ?legalResponsible .
?record aocat:has_contributor ?contributor .
}
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::cenieh::cir>
WHERE {
?record aocat:is_part_of ?collection .
?collection aocat:has_ARIADNE_subject ?archeologicalResourceType .
?collection aocat:has_owner ?owner .
?collection aocat:has_responsible ?legalResponsible .
MINUS {
?record aocat:has_ARIADNE_subject ?x
}
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::cenieh::cir> {
?record aocat:has_owner ?owner .
}
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::cenieh::cir>
WHERE {
?record aocat:is_part_of ?collection .
?collection aocat:has_owner ?owner .
MINUS {
?record aocat:has_owner ?x
}
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::cenieh::cir> {
?record aocat:has_responsible ?legalResponsible .
}
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::cenieh::cir>
WHERE {
?record aocat:is_part_of ?collection .
?collection aocat:has_responsible ?legalResponsible .
MINUS {
?record aocat:has_responsible ?x
}
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
INSERT {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::cenieh::cir> {
?record aocat:has_contributor ?contributor .
}
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::cenieh::cir>
WHERE {
?record aocat:is_part_of ?collection .
?collection aocat:has_contributor ?contributor .
MINUS {
?record aocat:has_contributor ?x
}
};
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>