45 lines
1.6 KiB
SPARQL
45 lines
1.6 KiB
SPARQL
|
#First count how many triples are there
|
||
|
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||
|
PREFIX ariadneplus: <https://ariadne-infrastructure.eu/aocat/>
|
||
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
|
||
|
SELECT ?resource ?aat WHERE {
|
||
|
|
||
|
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::271>{
|
||
|
?resource ?p ?o .
|
||
|
}
|
||
|
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::ads::aatplus>{
|
||
|
?resource aocat:has_derived_subject ?aat .
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#let's delete them from the aatplus graph for the individual records
|
||
|
|
||
|
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||
|
WITH <https://ariadne-infrastructure.eu/ariadneplus::ads::aatplus>
|
||
|
DELETE {
|
||
|
?resource aocat:has_derived_subject ?aat .
|
||
|
}
|
||
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::271>
|
||
|
USING <https://ariadne-infrastructure.eu/ariadneplus::ads::aatplus>
|
||
|
WHERE {
|
||
|
?resource rdf:type aocat:AO_Individual_Data_Resource .
|
||
|
?resource aocat:has_derived_subject ?aat .
|
||
|
}
|
||
|
|
||
|
#and now the collection
|
||
|
|
||
|
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
|
||
|
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
||
|
WITH <https://ariadne-infrastructure.eu/ariadneplus::ads::aatplus>
|
||
|
DELETE {
|
||
|
?resource aocat:has_derived_subject ?aat .
|
||
|
}
|
||
|
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::271>
|
||
|
USING <https://ariadne-infrastructure.eu/ariadneplus::ads::aatplus>
|
||
|
WHERE {
|
||
|
|
||
|
?resource rdf:type aocat:AO_Collection .
|
||
|
?resource aocat:has_derived_subject ?aat .
|
||
|
}
|