Friday, 13 September 2013

how to associate a resource to an other using Jena API

how to associate a resource to an other using Jena API

i have created an ontology containing tow classes, the first one is named
"father" and the second is it's subclass named "son".I would like to set
the following conditions to the class father using jena API: Has only son.
Has some son. then i would do the same for class "son": has exactly some
father.
My second issue is that i don't know how to associate the instance of
class "son" to the class "father" using also Jena API.I know it's possible
to manipulate my classes using "protegé" but i want to explore Jena API
instead.
As i'm a beginner, i would be thankful for any help or suggestions :)

No comments:

Post a Comment