SWRL tab in Protege 4

后端 未结 3 1164
借酒劲吻你
借酒劲吻你 2021-02-03 16:01

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 bee

3条回答
  •  隐瞒了意图╮
    2021-02-03 16:38

    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)
    

    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.

提交回复
热议问题