gpt4 book ai didi

sparql - 使用 FILTER 和 LIMIT 运行 SPARQL 查询时出错

转载 作者:行者123 更新时间:2023-12-02 01:32:11 25 4
gpt4 key购买 nike

我正在使用http://dbpedia-live.openlinksw.com/sparql/并使用 FILTER、ORDER BY 和 LIMIT 运行 SPARQL 查询。这是查询 - 它应该返回人员样本及其姓名和出生日期:

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dbpedia-owl: <http://dbpedia.org/ontology/>
SELECT DISTINCT ?x0 ?name ?dob WHERE {
?x0 rdf:type foaf:Person.
?x0 rdfs:label ?name.
?x0 dbpedia-owl:birthDate ?dob.
FILTER REGEX(?name,"[A-Z].*").
} ORDER BY ?name LIMIT 100

当我运行查询时,它返回一个内部错误:

Virtuoso VECSL Error VECSL: Internal error, ssl refd before set, please report query to support
SPARQL query:
define sql:big-data-const 0
#output-format:text/html
define sql:signal-unconnected-variables 1 define sql:signal-void-variables 1 define input:default-graph-uri <http://dbpedia.org> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dbpedia-owl: <http://dbpedia.org/ontology/>
SELECT DISTINCT ?x0 ?name ?dob
WHERE {
?x0 rdf:type foaf:Person.
?x0 rdfs:label ?name.
?x0 dbpedia-owl:birthDate ?dob.
FILTER REGEX(?name,"[A-Z].*").
} ORDER BY ?name LIMIT 100

但是如果我使用 # 注释掉我的 FILTER,则查询运行正常。有没有人见过这个?我的 SPARQL 中是否存在模糊错误,或者端点中是否存在内部错误?

最佳答案

实际上,Virtuoso 8 不支持涉及 ORDER BYFILTER 的查询。

自 2017 年 6 月以来已报告此问题。

关于sparql - 使用 FILTER 和 LIMIT 运行 SPARQL 查询时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50118453/

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