本文介绍了在未导入的本体中引用一个概念的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想引用其他本体中定义的概念,只使用各自的概念URI,不导入外部本体.我认为这与使用owl:equivalentTo属性的OWL语义兼容.

I want to refer to concepts defined in other ontologies, using only the respective concepts URI, without importing the outer ontology. I think that this is compatible with OWL semantics, using owl:equivalentTo property.

有人可以确认这是正确的吗?此外,有人可以为我提供有关如何执行此操作的示例(最好使用Protege)吗?

Can somebody confirm that this is correct? Furthermore, could someone provide me with an example on how to do it (preferably using Protege)?

推荐答案

假设有一个本体anOnt:,其中有一个要在本体yourOnt:中重用的术语anOnt:Term.您可以导入anOnt:并完成.但是,您也可以在本体中重新声明术语anOnt:Term,如下所示:

Assume there is an ontology anOnt: in which there is a term anOnt:Term that you want to reuse in your ontology yourOnt:. You may import anOnt: and you're done. However, you can also redeclare the term anOnt:Term in your ontology, like this:

yourOnt:  a  owl:Ontology .
anOnt:Term  a  owl:Class .
# use anOnt:Term as you wish

但是,仅当您要遵守OWL 2 DL时才需要这些选项. OWL还定义了OWL Full及其基于RDF的语义,根本不需要声明条款的地方.所以你可以这样写:

But these options are only necessary if you want to comply with OWL 2 DL. OWL also defines OWL Full, and its RDF-based semantics, where terms do not have to be declared at all. So you can just write:

yourOnt:SomeTerm  rdfs:subClass  anOnt:Term .

在基于OWL 2 RDF的语义的意义上,它与OWL语义兼容.

and that's compatible with OWL semantics, in the sense of the OWL 2 RDF-based semantics.

有关是否应使用owl:imports或重新声明术语,或只是重用术语的更多信息,可以阅读我在answers.semanticweb.com (现已去世的网站)上写的答案.有关为何OWL 2具有两种语义的更多信息,您可以阅读我在answers.semanticweb.com .

For more on whether you should use owl:imports or redeclare terms, or just reuse terms, you can read an answer I wrote on answers.semanticweb.com (a now deceased website). For more on why OWL 2 has two semantics, you can read another answer I wrote on answers.semanticweb.com.

这篇关于在未导入的本体中引用一个概念的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 05:27