rdf - How to map relational database to OWL? -


i trying map relational database owl here 2 tables student(student_id,student_name,course_id)
course(course_id,course_name)

+----+--------+-----------+     | id | name   | course_id |   +----+--------+-----------+      |  1 | adam   |         5 |    |  2 | michael|         2 |     +----+--------+-----------+    +-----------+-------------+     | course_id | course_name |    +-----------+-------------+       |         2 | dm          |     |         5 | webir       |   +-----------+-------------+ 

now course_id foreign key in student table referencing course_id in course table.i created ontology(defined schema) using protege 4.3

i trying insert data owl file instances using jena api. in ontology, columns not foreign keys mapped datatype properties , foreign keys mapped object property per paper(mapping relational owl(section 4.4.4)). adding tuples instances student , course classes in jena. if foreign key object property how can use uniquely determine relation. here jena code have used add data instances owl file created in protege.

    (student std : studlist) {         individual stud = stud_ont.createindividual(nspace + "student/"                 + std.getstudent_id());         stud.addproperty(stud_id, std.getstudent_id());         stud.addproperty(stud_name, std.getstudent_name());         stud.addproperty(reln, std.getcourse_id());         printstream p = new printstream(                 "/home/owldm/newedu.owl");         m.writeall(p, "rdf/xml", null);         p.close();     }     (course crs : courselist) {          individual cour = course_ont.createindividual(nspace + "course/"                 + crs.getcourse_name());         cour.addproperty(course_course_name, crs.getcourse_name());         printstream p = new printstream(                 "/home/owldm/newedu.owl");         m.writeall(p, "rdf/xml", null);         p.close();     } 

here "reln" object property(functional) adding course_id(values) foreign key. in relating 2 instances ,meaning suppose need infer "adam has taken webir course".

how can object property can replace foreign key value in relational uniquely join 2 tuples of 2 classes?
please suggest,any appreciated.

"the d2rq platform system accessing relational databases virtual, read-only rdf graphs".

you might want have @ that


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -