【发布时间】:2019-03-08 10:07:40
【问题描述】:
我正在使用 owlready 来丰富具有属性限制的本体。正如我们在 owlready 文档中看到的那样,可以对属性 https://owlready2.readthedocs.io/en/latest/restriction.html#restrictions-on-a-property 定义限制。作者仅解释了如何定义等效于限制的类,如下图所示。
class equivalent to a restriction
我想为现有的 owlready 类添加一个限制(我想用 subClass_of 替换等价物)。可能吗?我该怎么做?
谢谢
【问题讨论】:
标签: python ontology restriction owlready