gpt4 book ai didi

sparql - PROTEGE:使用长度路径

转载 作者:行者123 更新时间:2023-12-03 09:06:16 28 4
gpt4 key购买 nike

是否可以使用 Arbitrary Length Path Matching在 protege SPARQL 查询选项卡中?

enter image description here

最佳答案

您正在使用 Snap SPARQL Query Plugin ,而不是SPARQL Query plugin .

与 SPARQL 查询插件不同,Snap SPARQL 查询插件支持查询推断知识,但不支持属性路径。

来自Snap-SPARQL: A Java Framework for workingwith SPARQL and OWL (第 4 节):

SPARQL 1.1 contains property path expressions that allow regular-expression-like paths of properties to be matched. However, these are not supported by the Snap-SPARQL framework. While this would be a significant limitation under simple entailment, it is not clear how much of a limitation it actually is under the OWL entailment regime. This is because, one of motivations for property path expressions is that they enable queries to be written whose answers involve some kind of “transitivity” such as { ?x rdfs:subClassOf+ ?y } or { ?x :partOf+ ?y }.

In these cases, under the OWL entailment regime, transitivity comes “for free” according to the semantics of the language, for example if A is a subclass of B and B is a subclass of C, then A is also a subclass of C. For more complex cases that involve choices e.g. the lack of property path expressions imposes some inconvenience and queries such as { ?x rdfs:label | dce:title ?y }, will need to be written by the user, if possible.

让我们假设i ∈ sub ⊆ super。这两个插件都允许“推断”i ∈ super:

  • 使用 SPARQL 查询插件,您需要使用属性路径;
  • 使用 Snap SPARQL 查询插件,您不需要使用属性路径,事实上您也不能。

Comparison

如果您需要“SPARQL 查询” View 成为“SPARQL 查询”选项卡上的唯一 View ,请选择“窗口 > 将所选选项卡重置为默认状态”。

关于sparql - PROTEGE:使用长度路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47008072/

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