我想在Protege中用OWL本体来表达以下内容:IndividualA由位于X %的IndividualB1、位于Y %的IndividualB2组成,依此类推,直到100%。
是否存在对此进行建模的模式?
最佳答案
I want to express the following in an OWL ontology in Protege: IndividualA is composed of IndividualB1 at X %, IndividualB2 at Y % and so on, up until 100%.
Does a pattern exists to model this?
我认为您无法在 OWL 中获得您想要的金额保证/限制。但你所谈论的结构的一部分只是一个 n 元关系。而不是两地关系
isCompositionOf(IndividualA, individualB1)
你们有一个三地关系:
isComfusedOfByPercent(IndividualA, individualB1, 0.34)
使用语义技术表示 n 元关系的方法有很多,以至于 W3C 发布了一份工作说明 Defining N-ary Relations on the Semantic Web 。在 OWL 中,最常见的方法之一可能是:
x a Composition ;
hasComposite IndividualA ;
hasComponent IndividualB1 ;
hasPercentage 0.34 .
另一个可能是:
IndividualA hasCompositePart y .
y a CompositePart ;
hasComponent IndividualB1 ;
hasPercentage 0.34 .
关于semantic-web - 在 OWL 中向 objectProperty 添加限定符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36316588/