gpt4 book ai didi

rdf - SPARQL 更新中更新图中的变量

转载 作者:行者123 更新时间:2023-12-05 01:07:32 24 4
gpt4 key购买 nike

我可以使用变量来定义 SPARQL 更新中受影响的图吗?例如,我可以有:

INSERT 
{ GRAPH ?dest
{
?person foaf:name ?name .
?person foaf:mbox ?email
}
}
WHERE
{ GRAPH <http://example/people>
{
?person foaf:name ?name .
}
}

最佳答案

?dest必须由 WHERE 定义子句(否则系统如何知道 INSERT 中的数据在哪里?)。

如果您的意思是所有命名图,则添加 GRAPH ?dest {}WHERE条款。

关于rdf - SPARQL 更新中更新图中的变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18429592/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com