[Pellet-users] how to fetch individuals with certain properties
trennung at weinenvorglueck.de
trennung at weinenvorglueck.de
Sat Jun 7 15:55:23 UTC 2008
Hello!
I want to get all individuals, that have some properties.
They must have one of these: hasTag, startswith or endswith. hasTag is an
OWLDataProperty, as I get (with some others) via: Set<OWLDataProperty>
my_dprops = reasoner.getDataProperties();
Is it possible, to create an OWLDescription and get all matching individuals
like that:
[code]
OWLDescription clsC = new OWLDescription(); // OWLDescription is abstract,
doesn't work that way.
// public Set<OWLIndividual> getIndividuals(OWLDescription clsC,
boolean direct)
Set<OWLIndividual> results = reasoner.getIndividuals(clsC, false);
[/code]
If so, my primary question is: how do I create the OWLDescription?
best regards, Alex
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
More information about the Pellet-users
mailing list