Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SWRL rules lose axiom annotations on entity rename #371

Closed
martinjoconnor opened this issue Mar 14, 2016 · 1 comment
Closed

SWRL rules lose axiom annotations on entity rename #371

martinjoconnor opened this issue Mar 14, 2016 · 1 comment

Comments

@martinjoconnor
Copy link
Member

It appears that if I interactively rename an OWL entity used in a SWRL rule that I lose any annotations attached to that rule.

For example, if I start with the following rule with three annotations

  <rdf:Description>
       <swrla:isRuleEnabled rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</swrla:isRuleEnabled>
       <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Comment for s1</rdfs:comment>
       <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">S1</rdfs:label>
       <rdf:type rdf:resource="http://www.w3.org/2003/11/swrl#Imp"/>

and rename an entity it uses I get the following:

   <rdf:Description>
       <rdf:type rdf:resource="http://www.w3.org/2003/11/swrl#Imp"/>

I enclose a simple ontology with two classes, A and B, and two rules A(?x) -> and B(?x) ->.

If I rename A or B the associated rules seem to lose their annotations (such as their name and comment annotations). Rules that do not contain entities that have been renamed are fine. This can be seen by saving the file after renaming and find that the annotations have disappeared from the rules containing renamed entities.

StrippedAnnotationExample.owl.txt

(Strip .txt extension to open in Protege. GitHub does not support .owl extensions.)

@martinjoconnor
Copy link
Member Author

Underlying OWLAPI bug (owlcs/owlapi#501) fixed. Awaiting upgrade to next release of OWLAPI to close.

@matthewhorridge matthewhorridge changed the title SWRL rules losing their annotations on entity rename SWRL rules lose axiom annotations on entity rename Apr 22, 2016
YinghuaXu2 added a commit to bdionne/protege that referenced this issue Feb 16, 2020
YinghuaXu2 added a commit to bdionne/protege that referenced this issue Feb 17, 2020
YinghuaXu2 added a commit to bdionne/protege that referenced this issue Mar 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant