格式不正确的sparql删除查询 [英] malformed sparql delete query

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

问题描述

我想使用sparql更新数据属性声明,但是当我尝试在Protege中运行该语句时,在delete语句中得到了格式错误的查询异常.我是sparql的新手,无法弄清楚此查询出了什么问题:

I would like to update a data property assertion using sparql, but I get the malformed query exception at the delete statement when I try to run this in Protege. I'm very new to sparql and I can't figure out what's wrong with this query :

PREFIX m: <http://www.semanticweb.org/exemple#>
    DELETE  { ?o owl:minQualifiedCardinality ?min. }
    INSERT { ?o owl:minQualifiedCardinality "2000"^^xsd:decimal. }
    WHERE { 
        m:Revenu rdfs:subClassOf ?o.
        ?o owl:minQualifiedCardinality ?min.
    }

推荐答案

rdfs:owl:xsd:不是定义的前缀.

rdfs:, owl: and xsd: aren't defined prefixes.

修正该问题和引号后,更新将在 sparql.org的更新验证器中进行解析.

Fixing that and the quotes, the update parses at sparql.org's update validator.

注意:验证器会打印出第一个错误的行号.

Note: the validator prints out the line number of the first error.

这篇关于格式不正确的sparql删除查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆