简体   繁体   English

Protege - DL 查询和子类

[英]Protege - DL Query and subclasses

I'm using protege to test OWL Ontologies for my program.我正在使用 protege 为我的程序测试 OWL Ontologies。 Is there a way to ask in the DL Query tab if an entity is a subclass of another entity?有没有办法在 DL 查询选项卡中询问一个实体是否是另一个实体的子类? The autocomplete tab does not suggest the keyword subclass .自动完成选项卡不建议关键字subclass

There is no concept of ASK queries in the DL Query Tab. DL查询选项卡中没有ASK查询的概念。 The idea is to write Class Expressions and then do inferences based on what you selected in the check box section. 想法是编写类表达式,然后根据您在复选框部分中选择的内容进行推断。

Thus, to check if a class A is a subclass of a class B , the idea would be to use A and then compute the super classes and check if B is contained in the result. 因此,要检查类A是否为类B的子类,其想法是使用A ,然后计算超类,并检查结果中是否包含B

See the documentation 请参阅说明文件

An alternative query language would be SPARQL. 另一种查询语言是SPARQL。

Protégé 5.5.门生 5.5。 :

In the DL query window:在 DL 查询 window 中:

  • enter the entity name输入实体名称

In the "Query for"在“查询”中

  • check "Subclasses"检查“子类”

Press execute按执行

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM