You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AriadnePlus/dnet-ariadneplus-graphdb-pu.../src/main/resources/eu/dnetlib/ariadneplus/sparql/delete_ADS_periodo_enrichme...

35 lines
1.2 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/>
SELECT * WHERE {
GRAPH <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::1093>{
?resource aocat:has_temporal_coverage ?temporal .
}
GRAPH <https://ariadne-infrastructure.eu/ariadneplus::ads::periodoplus>{
?temporal aocat:has_period ?period .
optional {?temporal aocat:from ?temporalFrom .}
optional {?temporal aocat:until ?temporalUntil .}
}
}
#let's delete them from the periodoplus graph
PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>
WITH <https://ariadne-infrastructure.eu/ariadneplus::ads::periodoplus>
DELETE {
?temporal aocat:has_period ?periodOURI .
?temporal aocat:from ?temporalFrom .
?temporal aocat:until ?temporalUntil .
}
USING <https://ariadne-infrastructure.eu/api_________::ariadne_plus::ads::1093>
USING <https://ariadne-infrastructure.eu/ariadneplus::ads::periodoplus>
WHERE {
?resource aocat:has_temporal_coverage ?temporal .
?temporal aocat:has_period ?periodOURI .
optional {?temporal aocat:from ?temporalFrom .}
optional {?temporal aocat:until ?temporalUntil .}
}