I am facing problem in adding Individuals of a given class using jena.

Say for example we have a give hierarchy of classes:
Class Customer
         ObjectProperties:        hasName               Range: Class Name
                                          hasAddress            Range:
Class Address

Class Name
         ObjectProperties:        hasFirstName        Range: Class FirstName
                                          hasLastName        Range: Class
LastName


Class FirstName
         DatatypeProperties:        FirstName_Is        Range: String
datatype


Class LastName
         DatatypeProperties:        LastName_Is        Range: String
datatype

Class Address
         ObjectProperties:        hasBuildingInfo        Range: Class
BuildingInfo
                                          hasStreetInfo        Range: Class
StreetName

Class BuildingInfo
         DatatypeProperties:        BuildingNo_Is        Range: int datatype
                                              FlooNo_Is             Range:
int datatype


Class StreetInfo
         DatatypeProperties:        StreetName        Range: String datatype
                                              CityCode            Range:
String datatype



Now I want to add an individual of Customer Is there any easy way to do
that, instead of driiling down to the range classes and creating
individuals of FirstName, LastName, BuildinInfo, StrretInfo, and then
adding these individuals as values to Name and Address and hence add these
Name and Address individuals to Customer??

This is just an example where the object property hierarchy goes only two
level deep, but in my web application the hierarchies are much deeper and
hence i am in a search of some generic method to deal with this problem.
Can Jena API deal/help me with this??

-- 
*Dibyanshu Jaiswal*
Mb: +91 9038304989
Mb: +91 9674272265

Reply via email to