Hi David, On 17/01/11 16:19, David Makovoz wrote: > I create OntModel with OWL_DL_MEM_RDFS_INF: ontModel = > ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM_RDFS_INF, null); > It works more or less. However, I get inconsistent results from the > following: > Individual individual = ontModel.getIndividual(individualName); > > I run it with the same ontologies; sometimes it returns an object, and > sometimes it returns null. > I would appreciate any insight in what I might be doing wrong, or what I > may not but should be doing. There shouldn't be any indeterminacy in the return result from listIndividuals, afaict. Without more information, it's hard to know what to advise. A complete minimal test case - something that shows both the good and bad behaviours - would be helpful.
Ian -- ____________________________________________________________ Ian Dickinson Epimorphics Ltd, Bristol, UK mailto:[email protected] http://www.epimorphics.com cell: +44-7786-850536 landline: +44-1275-399069 ------------------------------------------------------------ Epimorphics Ltd. is a limited company registered in England (no. 7016688). Registered address: Court Lodge, 105 High St, Portishead, Bristol BS20 6PT, UK
