From: Richard C. <ri...@cy...> - 2006-04-19 10:19:04
|
Christian, On 13 Apr 2006, at 21:34, Christian Barbato wrote: > I really don't understand if there is a simple way to have a list > of all the properties of a class or of an individual (in OntModel). > With "simple" I mean something like $class->listProperties() (I > know that already exists a method with that name but it doesn't do > what I'm looking for). In short: As far as I know, there is no simple way to do that. Finding out which properties are available for a given class requires OWL reasoning in many cases. RAP doesn't have enough support for OWL reasoning to do that properly. You can cover the simpler cases "the hard way" by finding the owl:domain and rdfs:domain triples in your model (or InfModel if you can). Sorry about that. Richard > Thanks! > Christian. > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the > live webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > |