On 9 Nov 2010, at 11:04, Luis Ignacio Larrateguy wrote:
> if I didn't get you wrong, what you are looking for is  
> TranslationTables [1]

Yes, if there is just a limited number of different roles then that  
would work too.

Richard



> or using the ClassMap with same properties [2], like the example of  
> the
> Person, Professor, Researcher, etc.
> Please let me know if you could do it, and if able share your mapping
> fragment :-)
>
> Regards
>
> Luis Ignacio Larrateguy
>
> [1] http://www4.wiwiss.fu-berlin.de/bizer/D2RQ/spec/#translationtable
> <http://www4.wiwiss.fu-berlin.de/bizer/D2RQ/spec/#translationtable>[2]
> http://www4.wiwiss.fu-berlin.de/bizer/D2RQ/spec/#sameProperties
>
> On Mon, Nov 8, 2010 at 11:22 PM, rajashree deka <[email protected] 
> >wrote:
>
>> Hello Richard,
>>
>> I have a particular situation and I can't seem to find a way of
>> implementing this in the mapping.
>>
>> I have a table ROLE in which each person is associated with a  
>> particular
>> ROLE_ID. This ROLE_ID is then linked to a ROLE_NAME field in  
>> another table
>> called LOOKUP table. In the existing ontology, each role represents  
>> a class.
>>
>> For eg.
>> For person A :
>> person_id = 1
>> role = STUDENT
>> role_id= 100.
>>
>> For person B:
>> person_id=2
>> role = TEACHER
>> role_id = 101
>>
>> The URI for the STUDENT role will be of the form http://xyz.com/STUDENT 
>> .
>> The URI for the TEACHER role will be of the form http://xyz.com/TEACHER 
>> .
>>
>> Now, the URIs of the instances of each class is of the form:
>> abc:STUDENT rdf:about="http://xyz.com/role_1";
>> abc:TEACHER rdf:about="http://xyz.com/role_2";
>>
>> How can I implement this?
>>
>> Many thanks,
>> Rajashree
>>
>>
>> ------------------------------------------------------------------------------
>> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
>> David G. Thomson, author of the best-selling book "Blueprint to a
>> Billion" shares his insights and actions to help propel your
>> business during the next growth cycle. Listen Now!
>> http://p.sf.net/sfu/SAP-dev2dev
>> _______________________________________________
>> d2rq-map-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel
>>
>>
>
>
> -- 
> Luis Larrateguy
> Blog: http://nacho.larrateguy.com.ar/
> Web: http://larrateguy.com.ar/luisignacio
> ------------------------------------------------------------------------------
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a
> Billion" shares his insights and actions to help propel your
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev_______________________________________________
> d2rq-map-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel


------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
d2rq-map-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel

Reply via email to