【问题标题】:fuseki 2.0.0 update seems not workingfuseki 2.0.0 更新似乎不起作用
【发布时间】:2015-09-18 21:13:03
【问题描述】:

我正在尝试使用发送到http://localhost:3030/test/update 的更新请求来更新 fuseki:

DELETE    { <http://example.org/resource/user38702668>   <http://example.org/follower> ?a } INSERT{<http://example.org/resource/user38702668> <http://example.org/follower> <http://localhost/1212>} where{<http://example.org/resource/user38702668> <http://example.org/follower> ?a}

fuseki 网页界面返回

<html>
<head>
</head>
<body>
<h1>Success</h1>
<p>
Update succeeded
</p>
</body>
</html>

但是当我查询 http://localhost:3030/test/update 时,我在 fuseki 中仍然有原始的三元组(即,不是更新后的值 http://localhost:3030/test/update )。有什么想法吗?

谢谢

【问题讨论】:

    标签: insert-update fuseki


    【解决方案1】:

    这是一个迟到的答案,但我遇到了同样的问题。

    问题在于 Fuseki 对图表非常敏感。它需要知道您要从哪个图表中删除三元组,否则它只会在默认图表中查看。所以它给你的响应 (200, OK) 实际上是正确的,因为它找不到三元组来删除它们,因此它起作用了!因此,如果您将查询更改为:

    with <graph_URL_here>
    DELETE    
    { 
        <http://example.org/resource/user38702668>   <http://example.org/follower> ?a 
    } 
    INSERT
    {
        <http://example.org/resource/user38702668> <http://example.org/follower> <http://localhost/1212>
    } 
    where{
        <http://example.org/resource/user38702668> <http://example.org/follower> ?a
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-03-20
      • 1970-01-01
      • 1970-01-01
      • 2020-04-10
      • 2012-11-30
      • 2016-11-29
      • 2016-02-01
      • 2020-09-23
      相关资源
      最近更新 更多