ads archive: use the issued and modified date from collection if the records does not have it
This commit is contained in:
parent
236f936b05
commit
331e3e19cd
|
@ -1,104 +1,15 @@
|
|||
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::ads::archives> {
|
||||
?record aocat:has_access_rights ?coll_value .
|
||||
}
|
||||
DELETE {
|
||||
<https://ariadne-infrastructure.eu/aocat/Collection/ADS/AC6671C7-FD6D-311D-98D0-F635D5EFAA4F> aocat:was_modified ?x .
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archives>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archivesCollInfo>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_access_rights ?coll_value .
|
||||
MINUS {
|
||||
?record aocat:has_access_rights ?rec_value .
|
||||
}
|
||||
<https://ariadne-infrastructure.eu/aocat/Collection/ADS/AC6671C7-FD6D-311D-98D0-F635D5EFAA4F> aocat:was_modified ?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::ads::archives> {
|
||||
?record aocat:has_ARIADNE_subject ?coll_value .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archives>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archivesCollInfo>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_ARIADNE_subject ?coll_value .
|
||||
MINUS {
|
||||
?record aocat:has_ARIADNE_subject ?rec_value .
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archives> {
|
||||
?ariadneSubject skos:prefLabel ?label .
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archives> {
|
||||
?s aocat:has_ARIADNE_subject ?ariadneSubject .
|
||||
GRAPH ?g {
|
||||
?ariadneSubject skos:prefLabel ?label .
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
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/>
|
||||
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::ads::archives> {
|
||||
?record aocat:has_owner ?coll_value .
|
||||
?coll_value rdf:type ?type .
|
||||
?coll_value rdfs:label ?label .
|
||||
?coll_value aocat:has_name ?name .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archives>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archivesCollInfo>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_owner ?coll_value .
|
||||
?coll_value rdf:type ?type .
|
||||
?coll_value rdfs:label ?label .
|
||||
?coll_value aocat:has_name ?name .
|
||||
MINUS {
|
||||
?record aocat:has_owner ?rec_value .
|
||||
}
|
||||
};
|
||||
|
||||
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/>
|
||||
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::ads::archives> {
|
||||
?record aocat:has_responsible ?coll_value .
|
||||
?coll_value rdf:type ?type .
|
||||
?coll_value rdfs:label ?label .
|
||||
?coll_value aocat:has_name ?name .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archives>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archivesCollInfo>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:has_responsible ?coll_value .
|
||||
?coll_value rdf:type ?type .
|
||||
?coll_value rdfs:label ?label .
|
||||
?coll_value aocat:has_name ?name .
|
||||
MINUS {
|
||||
?record aocat:has_responsible ?rec_value .
|
||||
INSERT DATA {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archivesCollInfo>{
|
||||
<https://ariadne-infrastructure.eu/aocat/Collection/ADS/AC6671C7-FD6D-311D-98D0-F635D5EFAA4F> aocat:was_modified "2022-11-08"^^xsd:dateTime .
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -123,45 +34,6 @@ INSERT {
|
|||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
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::ads::archives> {
|
||||
?s aocat:was_modified ?issued .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archives>
|
||||
WHERE {
|
||||
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||
?s aocat:was_issued ?issued .
|
||||
MINUS {
|
||||
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||
?s aocat:was_modified ?modified .
|
||||
}
|
||||
};
|
||||
|
||||
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::ads::archives> {
|
||||
?record aocat:was_issued ?coll_issued_value .
|
||||
?record aocat:was_modified ?coll_modified_value .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archives>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archivesCollInfo>
|
||||
WHERE {
|
||||
?record aocat:is_part_of ?collection .
|
||||
?collection aocat:was_issued ?coll_issued_value .
|
||||
?collection aocat:was_modified ?coll_modified_value .
|
||||
MINUS {
|
||||
?record aocat:was_issued ?rec_value .
|
||||
?record aocat:was_modified ?rec_value2 .
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
|
@ -187,8 +59,8 @@ PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
|||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
INSERT {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archives> {
|
||||
?s aocat:has_native_subject <https://ariadne-infrastructure.eu/aocat/Concept/ads/NOT_PROVIDED> .
|
||||
<https://ariadne-infrastructure.eu/aocat/Concept/ads/NOT_PROVIDED> skos:prefLabel "Not provided" .
|
||||
?s aocat:has_native_subject <https://ariadne-infrastructure.eu/aocat/Concept/ADS/NOT_PROVIDED> .
|
||||
<https://ariadne-infrastructure.eu/aocat/Concept/ADS/NOT_PROVIDED> skos:prefLabel "Not provided" .
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
|
@ -201,28 +73,6 @@ 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::ads::archives> {
|
||||
?s aocat:has_spatial_coverage <https://ariadne-infrastructure.eu/aocat/Place/NOTPROVIDED> .
|
||||
<https://ariadne-infrastructure.eu/aocat/Place/NOTPROVIDED> rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Spatial_Region> .
|
||||
<https://ariadne-infrastructure.eu/aocat/Place/NOTPROVIDED> rdfs:label "Name not provided" .
|
||||
<https://ariadne-infrastructure.eu/aocat/Place/NOTPROVIDED> aocat:has_place_name "Name not provided" .
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archives> {
|
||||
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||
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 skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||||
|
@ -267,6 +117,93 @@ INSERT {
|
|||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
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::ads::archives> {
|
||||
?s aocat:has_responsible <https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> .
|
||||
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Agent> .
|
||||
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> rdfs:label "Not provided" .
|
||||
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> aocat:has_name "Not provided" .
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archives> {
|
||||
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||
MINUS {
|
||||
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||
?s aocat:has_responsible ?resp .
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
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::ads::archives> {
|
||||
?s aocat:has_owner <https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> .
|
||||
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> rdf:type <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/AO_Agent> .
|
||||
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> rdfs:label "Not provided" .
|
||||
<https://ariadne-infrastructure.eu/aocat/Agent/NOTPROVIDED> aocat:has_name "Not provided" .
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archives> {
|
||||
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||
MINUS {
|
||||
?s rdf:type aocat:AO_Individual_Data_Resource .
|
||||
?s aocat:has_owner ?own .
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
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::ads::archives> {
|
||||
?record aocat:was_modified ?coll_mod .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archives>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archivesCollInfo>
|
||||
WHERE {
|
||||
?record rdf:type aocat:AO_Individual_Data_Resource .
|
||||
?record aocat:is_part_of ?coll .
|
||||
?coll aocat:was_modified ?coll_mod .
|
||||
MINUS{
|
||||
?record rdf:type aocat:AO_Individual_Data_Resource .
|
||||
?record aocat:was_modified ?modified .
|
||||
}
|
||||
};
|
||||
|
||||
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::ads::archives> {
|
||||
?record aocat:was_issued ?coll_iss .
|
||||
}
|
||||
}
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archives>
|
||||
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::archivesCollInfo>
|
||||
WHERE {
|
||||
?record rdf:type aocat:AO_Individual_Data_Resource .
|
||||
?record aocat:is_part_of ?coll .
|
||||
?coll aocat:was_issued ?coll_iss .
|
||||
MINUS{
|
||||
?record rdf:type aocat:AO_Individual_Data_Resource .
|
||||
?record aocat:was_issued ?issued .
|
||||
}
|
||||
};
|
||||
|
||||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||||
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||||
INSERT {
|
||||
|
|
Loading…
Reference in New Issue