Class assertion of an individual

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

Class assertion of an individual

Michael Lodemann
How do I do it programmatically?

Do I assert an OWLIndividual to a OWLNamedClass? Or vice versa? Can't
find the function for it!

Hope so. has a hint.

Thanks,
Michael
_______________________________________________
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: Class assertion of an individual

Olivier Dameron
On Wed, 29 Jul 2009 13:23:43 +0200, Michael Lodemann
<[hidden email]> wrote:

> Do I assert an OWLIndividual to a OWLNamedClass? Or vice versa? Can't
> find the function for it!

For an individual, use the addRDFType(RDFSClass type) method.

For a class, you can use createInstance(String name)

cheers
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
Reply | Threaded
Open this post in threaded view
|

Re: Class assertion of an individual

Michael Lodemann
Thank you Olivier,

that is exactly what I was searching for!

Cheers,
Michael


Olivier Dameron schrieb:

> On Wed, 29 Jul 2009 13:23:43 +0200, Michael Lodemann
> <[hidden email]> wrote:
>
>  
>> Do I assert an OWLIndividual to a OWLNamedClass? Or vice versa? Can't
>> find the function for it!
>>    
>
> For an individual, use the addRDFType(RDFSClass type) method.
>
> For a class, you can use createInstance(String name)
>
> cheers
> 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