From: Matthew H. <mat...@cs...> - 2007-07-30 12:16:02
|
Hi Cody, > The documentation examples online (Example 2) use the following line: > > > > OWLAxiom axiom = factory.getOWLSubClassAxiom(clsA, clsB); > > > > I downloaded the binaries online, but they do not seem to contain > the interface class for OWLAxiom. Hmm, it should. It should be in the owlapi-api.jar in the org.semanticweb.owl.model package. > The JavaDoc contains documentation for it, but the class is not in > the jar. I am able to make the following line work, but of course, > it seems to be bad practice (i.e. programming to an implementation > rather than an interface): > > > > OWLSubClassAxiom axiom = factory.getOWLSubClassAxiom > (clsPerson,factory.getOWLThing()); > > This isn't necessarily bad, because OWLSubClassAxiom is an interface (a subinterface of OWLAxiom), however, you should be able to use OWLAxiom. Something that has just occurred to me is you might be using an old version of the API, which did have OWLSubClassAxiom, but not OWLAxiom - which version of the API are you using? Cheers, Matthew |