[Pellet-users] getting all properties and their values

Alexander Becker trennung at weinenvorglueck.de
Tue Jun 24 10:16:34 UTC 2008


Hello!

How do I get a list of all properties in an ontology *and* their possible values?
All properties can be retrieved by: reasoner.getKB().getProperties()

But how do I get their values? I need a list of all values, that were given for such properties.

e.g. there is a property hasCase, and it may have such values like Accusative or Genitive.
I need them all.

There is a method called getPropertyValues(ATermAppl r, ATermAppl x), but javadoc tells me:
[quote]
org.​mindswap.​pellet.​KnowledgeBase
public List<ATermAppl> getPropertyValues(ATermAppl r, ATermAppl x)
Return all property values for a given property and subject value.
Parameters:
r x 
Returns:
List of ATermAppl objects.
[/quote]

and I have no idea what the subject should be.

Regards, Alex
-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger


More information about the Pellet-users mailing list