Hi,

I have a database which has the table RelatesTo

+----+------------+---------------+----------------------+------------+----------+---------+
| id   | Person_id1 | Person_id2 | relationship           | start_date | 
end_date | notes |
+----+------------+---------------+----------------------+------------+----------+---------+
|  1   |          1    |          2        | Mentor       | NULL       | NULL   
  | NULL    |
+----+------------+---------------+----------------------+------------+----------+---------+
|  1   |          1    |          2        | Father       | NULL       | NULL   
  | NULL    |
+----+------------+---------------+----------------------+------------+----------+---------+
|  1   |          1    |          2        | Spouse       | NULL       | NULL   
  | NULL    |
+----+------------+---------------+----------------------+------------+----------+---------+


I need to create RDF properties like the following based on the value of the 
relationship column

if relationship value is Spouse
<rel:SpouseOf>
<foaf:person>
<foaf:name>name</foaf:name>
</foaf:person>
</rel:SpouseOf>

if relationship column values is Mentor

<rel:MentorOf>
<foaf:person>
<foaf:name>name</foaf:name>
</foaf:person>
</rel:SpouseOf>

Is there anyway to do this?

Thank you for your help.

Regards,
Srikar.


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
d2rq-map-devel mailing list
d2rq-map-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel

Reply via email to