Protege 4中的"SWRL"选项卡 [英] SWRL tab in Protege 4

查看:181
本文介绍了Protege 4中的"SWRL"选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

protege 4版本中没有protege SWRL选项卡,我已经尝试了protege 4.1和protege 4.2.据说用于在protege中编辑SWRL规则的axiome插件仅在protege 3版本中有效.

The protege SWRL tab is not available in Protege 4 versions, I have tried both protege 4.1 and protege 4.2. The axiome plugin mentioned to edit the SWRL rules in protege has been said to work only in protege 3 versions.

任何人都可以告诉我插件或过程以包括该插件来编辑SWRL规则吗?

Can anyone tell me plugins or procedure to include the plugin to edit SWRL rules in protege?

推荐答案

可以在Protégé4中编辑SWRL规则,但不能像Protégé3中那样使用漂亮的界面进行编辑.如果转到菜单Window->视图->本体视图,有一个规则选项.选择它并将其添加为视图",即当前选项卡中的矩形.规则是这样写的:

SWRL rules can be edited in Protégé 4, but not with a nice interface like in Protégé 3. If you go to menu Window -> Views -> Ontology views, there is an option Rules. Select it and add it as a "view", i.e., a rectangle in the current tab. Rules are written like this:

parent(?x,?y), brother(?y,?z) -> uncle(?x,?z)

其中,属性以二进制谓词形式编写,类以一元谓词形式编写,变量带有问号前缀,head与主体之间用->分隔,而常量仅在没有本体前缀的情况下编写.如果您先前使用的属性,类和个人未在相应选项卡中定义,则无法使用.

where properties are written as binary predicates, classes as unary predicate, variables are prefixed with question marks, head is separated from body by -> and constants are just written without the ontology prefix. It does not work if the properties, classes and individuals you use are not previously defined in the respective tabs.

这篇关于Protege 4中的"SWRL"选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆