Protege 中的 SPARQL 查询选项卡不显示任何内容

SPARQL Query tab in Protege doesn't show anything

我在 Protege 中打开 SPARQL 查询选项卡,但结果是这样的:

如何编写查询?

It happens in version 2.0.1 of Protégé SPARQL Plugin, bundled with Protege 5.2, after any ontology is loaded.

Update the the "OWLAPI RDF Library" and "Protege SPARQL Plugin" to the latest version with the auto-update mechanism (which appears when starting up Protege or can be activated through the File > Check for plugins… menu):

来源:https://github.com/protegeproject/sparql-query-plugin/issues/10.

尝试扩大 Protégé 的堆大小。 SPARQL Query 和其他人遇到了同样的问题。插件更新对我来说从来没有用过,每次我只是删除新插件和 Protégé 就像什么都没发生一样。

所以我目前找到的解决方案是不更新插件而是扩大堆大小。

怎么做?

这里有 Protégé 3 和 4 的 wiki:https://protegewiki.stanford.edu/wiki/Setting_Heap_Size 但 Protégé 5 没有,所以我应该自己想办法。

好吧,你应该打开 Protege.l4j.ini 文件并将堆大小限制从 {200,500} 更改为 {2000,5000}(我不是当然,如果您的计算机可以承受,您必须阅读上面的 wiki 以了解更多信息。

应该是这样的:

    -Xms2000M
    -Xmx5000M
    -Xss16M

希望这可以帮助那里的人。 最好的祝福, AmelieSpark.

对于 Protege 5.5.0,您可能还需要从菜单中添加查询视图:

Window-->查看->查询查看->SPARQL查询

并将其放入 SPARQL 查询选项卡。

另一种方法是下载“Snap SPARQL 查询”插件并在 SPARQL 选项卡上添加视图。