芝麻2.8.4子查询限制错误修复? [英] Sesame 2.8.4 subquery limit bug fix?
问题描述
芝麻2.8.4中似乎有错误.
如果我具有以下数据集:
If I have the following data set:
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix : <http://example.org/>.
:a rdf:type :AClass .
:a :hasName "a"^^xsd:string .
:a :hasProperty :xa .
:a :hasProperty :ya .
:a :hasProperty :za .
:b rdf:type :AClass .
:b :hasName "b"^^xsd:string .
:b :hasProperty :xb .
:b :hasProperty :yb .
:c rdf:type :AClass .
:c :hasName "c"^^xsd:string .
:c :hasProperty :xc .
并对其运行以下查询:
prefix : <http://example.org/>
select ?s ?p ?o {
#-- first, select two instance of :AClass
{ select ?s { ?s a :AClass } limit 2 }
#-- then, select all the triples of
#-- which they are subjects
?s ?p ?o
}
我得到的结果是:
--------------------------------------------------------------------
| s | p | o |
====================================================================
| :a | <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> | :AClass |
| :a | :hasName | "a" |
--------------------------------------------------------------------
这是正确的结果,而不是:
Instead of this one which is the correct result:
--------------------------------------------------------------------
| s | p | o |
====================================================================
| :a | <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> | :AClass |
| :a | :hasName | "a" |
| :a | :hasProperty | :xa |
| :a | :hasProperty | :ya |
| :a | :hasProperty | :za |
| :b | <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> | :AClass |
| :b | :hasName | "b" |
| :b | :hasProperty | :xb |
| :b | :hasProperty | :yb |
--------------------------------------------------------------------
有人知道这个错误吗?有人遇到过同样的问题吗?还是有修复此错误的芝麻版本?
Does anyone know about this bug? Has anybody encountered the same problem? Or is there another version of Sesame with this bug fixed?
回答我的问题后,添加了下一行:
为避免混淆,请执行以下操作:该错误位于工作台中,而不是查询引擎中. 查询引擎运行完美.
To avoid any confusions: The bug is in the Workbench and NOT the query engine. The query engine works perfectly.
推荐答案
您看到的问题不是查询引擎中的错误,而是Workbench客户端应用程序中的错误(这也解释了为什么我无法重现它)较早,因为我使用的是命令行客户端).由于某种原因,Workbench错误地呈现了结果,仅显示2行(尽管在标题中说有9个结果要显示):
The problem you are seeing is not a bug in the query engine, but a bug in the Workbench client application (which also explains why I couldn't reproduce it earlier, as I was using the commandline client). For some reason Workbench incorrectly renders the result, showing only 2 rows (despite saying in the header that there are 9 results to be shown):
该问题与工作台中的结果分页功能有关,因为当您更改该设置时,它突然显示了完整的结果:
The problem is related to the result paging functionality in the Workbench, because when you change that setting it suddenly does show the complete result:
此问题现已记录为芝麻的问题跟踪器中的错误: SES-2307 一个>.
This issue has now been logged as a bug in Sesame's issue tracker: SES-2307.
这篇关于芝麻2.8.4子查询限制错误修复?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!