[Pellet-users] Check for no subclass

Alexander Musidlowski musidlow at informatik.hu-berlin.de
Sat Feb 23 14:19:15 UTC 2008


Hi,

my problem is that

subClsSets = reasoner.getSubClasses(cls);

behaves different to

subPropSets = reasoner.getSubProperties(property);

If there is no subclass the result is [[NOTHING]]. If there is no
subproperty the result is [[]]. The last one can be checked by
isEmpty() but how can i check if there is no subclass?
isEmpty() doesn´t work which is quite right, check for null also fails
and a check for size() fails, if there is just one subclass. So how
can i check that there is no subclass?

-- 
Bye
Alex





-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 183 bytes
Desc: not available
Url : http://lists.owldl.com/pipermail/pellet-users/attachments/20080223/a949b1b2/attachment.pgp 


More information about the Pellet-users mailing list