【发布时间】:2015-02-24 02:01:39
【问题描述】:
我在 Protege 4 中使用了“规则”视图
我认为如果 protege 支持定义规则名称。
Rule: // syntax color is changed
我这样定义规则
'context data'(?data), user(?user) -> hasData(?user, ?data)
我尝试定义规则名称..但我不知道如何使用规则名称
Rule: 'context data'(?data), user(?user) -> hasData(?user, ?data)
出现语法错误!
如何在 Protege 4 中定义 SWRL 规则名称?
【问题讨论】:
-
SWRL 规则被建模为 OWL API 中的公理(由 Protege 使用)。它们可以像公理一样使用标签进行注释,但它们没有“名称”或 IRI。旧版本的 OWL API(我相信是 2.2.0 和 3.1)过去曾允许在 SWRL 规则上使用 IRI,但这是不正确的,并且行为在几年前已经改变。
标签: owl ontology protege protege4 swrl