Hi,
I have a problem in modifying the mapping file. The crux of the problem is
as follows:
I have a "person_role" database table which has the following fields:
person_role_id role_name table_name primary_key_id
1 teacher platform 200
2 painter dataset 300
3 teacher platform 201
4 dancer platform 400
5 dancer dataset 401
6 painter dataset 301
7 athlete platform 500
Here, primary_key_id field contains the primary_key_id values of the
corresponding tables - platform and dataset.
Now, in the ontology, "Role" is a class, with subclasses teacher, painter,
dancer and athlete; and it has instances:
abc:teacher rdf:about="http://xyz/Role_1
abc:teacher rdf:about="http://xyz/Role_3
abc:painter rdf:about="http://xyz/Role_2
abc:painter rdf:about="http://xyz/Role_6
abc:dancer rdf:about="http://xyz/Role_4
abc:dancer rdf:about="http://xyz/Role_5
abc:athlete rdf:about="http://xyz/Role_7
How do I modify my mapping to do the following:
1. Create teacher, painter, dancer and athlete subclasses under the class
Role.
2. Then join the data of table "platform" with the subclasses to form
instances like:
abc:platform rdf:about="http:xyz/Platform_200">
<abc:hasPersonWithRole rdf:resource="http://xyz/Role_1" />
abc:platform rdf:about="http:xyz/Platform_201">
<abc:hasPersonWithRole rdf:resource="http://xyz/Role_3" />
Any help would be highly appreciated.
Thanks,
Rajashree
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
d2rq-map-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel