[Pellet-users] get all subproperties of an object property
Christiane Telöken
teloeken at tzi.de
Thu Jan 24 18:49:02 UTC 2008
Hi,
I am using Jena and Pellet to retrieve all statements contained in my
ontology (see attachment).
This works pretty fine unless there is a property that has more than
just one range.
Could anybody help me in figuring out all of the possible ranges of an
object property?
Moreover I am not yet able to retrieve all subproperties of an property.
###################################################################################
The following datastructures are already filled correctly:
// List containing individuals
static ArrayList <Individual> indivResources = new ArrayList
<Individual> ();
// List containing object properties
static ArrayList <Property> objPropertyResources = new ArrayList
<Property> ();
This is the way I am trying to retrieve all the statements:
Property prop;
Statement stmt;
for (int i = 0; i < indivResources.size(); i++){
for (int j = 0; j < objPropertyResources.size(); j++){
prop = objPropertyResources.get(j);
stmt = indivResources.get(i).getProperty(prop);
statementResources.add(stmt);
}
}
As mentioned above, this works for all cases except the one if an
property has more than just one range.
I would be very glad for any hint that helps me with my questions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ABoxThoriumReiheOI.owl
Type: text/rdf
Size: 171309 bytes
Desc: not available
Url : http://lists.owldl.com/pipermail/pellet-users/attachments/20080124/dd96149b/attachment-0001.bin
More information about the Pellet-users
mailing list