Open Galigator opened 6 years ago
Interesting proposal. However, It would not be enough to add the data factory, one would have to change/extend the interfaces of OWLNamedIndividual and other OWLObjects to provide functions like types() or equivalents(). How to document these functions? The result clearly depends on the reasoner and ontology. It is like adding to the String class a method getLineNumber() to return the line in which this string appears in a text document. I am not convinced this is a good idea. Besides, how this would prevent students from mis-using myIndividual.getClass()?
Interesting ideas but they include the fact that an OWLEntity has a reference ontology, which is a major change in the way the OWL API is currently designed. I think it would be better suited for a decorator, where we'd have a wrapper for OWLEntity that knows which ontology and which reasoner we wish to use, and simply shortcuts the common operations and their boilerplate code. That way, this would be doable without too much change.
Hello, thank you for owlapi, the quality of your work inspire me doing better code.
Following is the description a functionality I would like to see in a future version of owlapi.
The basic principle is to attach a reasonning system to the data factory and then hide the reasoning part. Why would I enjoy to see that ?