You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by David Makovoz <da...@impact-computing.com> on 2011/01/17 17:19:21 UTC
Inconsistent returns of ontModel.getIndividual(individualName)
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.
David Makovoz
Re: Inconsistent returns of ontModel.getIndividual(individualName)
Posted by Ian Dickinson <ia...@epimorphics.com>.
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:ian@epimorphics.com 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