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

Feature request: Add better support for ontology annotation #11

Open
dosumis opened this issue May 13, 2017 · 1 comment
Open

Feature request: Add better support for ontology annotation #11

dosumis opened this issue May 13, 2017 · 1 comment

Comments

@dosumis
Copy link

dosumis commented May 13, 2017

Would it be possible to allow an ontology in subject position in an annotation axiom?

e.g.

o = manager.createOntology()
val fu = AnnotationProperty("fu")
val anax = o Annotation(fu, "bar")
@balhoff
Copy link
Member

balhoff commented May 15, 2017

I think it's a good idea to add the syntax you propose. The only issue is that the OWL API treats these differently from other axioms. So the type of anax on the last line would be AddOntologyAnnotation rather than OWLAnnotationAssertionAxiom. You would then need to use

manager.applyChange(anax)

rather than manager.addAxioms(...).

What do you think? It's unfortunate that you can't collect these annotations into a set of other axioms you want to create.

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

2 participants