method to find the class that an individual belongs to

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

method to find the class that an individual belongs to

Julio Cesar dos Reis
Hello. I'm using protege OWL api.
When I have an Individual as:

[...]
OWLIndividual individual = owlModel.getOWLIndividual("name");

thus now I would like to know a method to find the class that this
individual belongs to in the ontology.

Is it possible?
Could you help me?

regards

JĂșlio


_______________________________________________
protege-owl mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
Reply | Threaded
Open this post in threaded view
|

Re: method to find the class that an individual belongs to

Olivier Dameron
Hello,

On 08/19/2010 02:46 PM, Julio Cesar dos Reis wrote:
> thus now I would like to know a method to find the class that this
> individual belongs to in the ontology.

getRDFType() or getRDFTypes() from
http://protege.stanford.edu/protege/3.4/docs/api/owl/edu/stanford/smi/protegex/owl/model/impl/DefaultRDFIndividual.html

olivier
_______________________________________________
protege-owl mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03