我想使用查询来使用唯一 ID 对资源进行重复数据删除。插入/删除 - 查询不起作用,因为创建的节点比删除的节点少。是否可以使用类似的东西?
insert {
?new a mails:Account.
?new mails:hasID ?id.
?new rdfs:label ?label
}
where {
{
select distinct ?id ?label where {
?account a mails:Account.
?account mails:hasID ?id.
?account rdfs:label ?label
}
}
bind(bnode() as ?new)
{
delete where {
?account mails:hasID ?id
}
}
}