本文介绍了删除查询 SPARQL FUSEKI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何删除给定 uri 的所有三元组语句?

How can I delete all triples statement for a given uri?

我的图表包含:

 PREFIX mo: <http://www.dbwic.org/ontology#>
          PREFIX term:  <http://www.dbwic.org/ontology/terms/>
          PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
 <http://www.dbwic.org/page/d2e2e606-f962-4db1-8ffc-883e75da109a> term:title "tiitle album";
                                                                  term:date "date title";
                                                                  term:name " name ".

我试图删除 http://www.dbwic.org/page/d2e2e606-f962-4db1-8ffc-883e75da109a 但查询无效.

I tried to delete all triples for http://www.dbwic.org/page/d2e2e606-f962-4db1-8ffc-883e75da109a but the query is not working.

 PREFIX mo: <http://www.dbwic.org/ontology#>
          PREFIX term:  <http://www.dbwic.org/ontology/terms/>
          PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
delete{  ?id ?p ?o}
where
    {
     FILTER (?id = <http://www.dbwic.org/page/d2e2e606-f962-4db1-8ffc-883e75da109a>)
    ?id ?p ?o
    }

SPARQL 查询:没有 'query=' 参数 (#400)错误 400:SPARQL 查询:无 'query=' 参数

SPARQL Query: No 'query=' parameter (#400)Error 400: SPARQL Query: No 'query=' parameter

推荐答案

删除位置{ <http://www.dbwic.org/page/d2e2e606-f962-4db1-8ffc-883e75da109a>?p ?o }

但你的问题是:

SPARQL Query: No 'query=' parameter

您似乎正在向查询端点发送更新.

It looks like you are sending an update to the query endpoint.

更新和查询端点是分开的.

The update and query endpoints are separate.

检查用于发送更新请求的代码.它通常被称为更新":

Check the code used to send the update request. It usually is called "update":

http://host:port/*YourDataset*/update

查询端点结束 .../query.../sparql.

The query endpoint ends .../query or .../sparql.

这篇关于删除查询 SPARQL FUSEKI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 18:08