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
Add Annotation to the ObjectPropertyRange #235
Comments
[Data factory has a range axiom builder method that takes a set of Annotations](http://owlapi.sourceforge.net/javadoc/org/semanticweb/owlapi/model/OWLDataFactory.html#getOWLObjectPropertyRangeAxiom%28org.semanticweb.owlapi.model.OWLObjectPropertyExpression, org.semanticweb.owlapi.model.OWLClassExpression, java.util.Set%29). OWLDataFactory::getOWLObjectPropertyRangeAxiom if the markdown ate that link. |
To give a complete code snippet:
At this point, add the axiom to your ontology and save in the preferred format. From the example, I'm guessing that's OWL/XML. |
Given the number of questions I see about how to add annotations, a few more examples should be added to the documentation. |
this resolve my problem i finally got it OWLAnnotationValue val=domain.getIRI(); |
Note that
is equivalent to
|
Note that you can also get an annotated copy of an existing axiom. There's OWLAxiom getAnnotatedAxiom(Set<OWLAnnotation> annotations); Note that this returns a copy of the axioms that the method is called on. |
Anyone knows who to add a simple annotation to a ObjectPropertyRange like the example bellow?
The text was updated successfully, but these errors were encountered: