Hi,
I don't know if this is what you are looking for, but may be it's a start
point.
Recently I wrote a class to generate a mapping file based on rules from an
ontology. Most of them are hints of what to have in account.

The link is:
[d2rq-dev] Generating mapping file from an Ontology

http://sourceforge.net/mailarchive/forum.php?thread_name=AANLkTimqPKMYsVvcVoYjSpf2hU5-dy-4fWvYK3M33xe0%40mail.gmail.com&forum_name=d2rq-map-devel

<http://sourceforge.net/mailarchive/forum.php?thread_name=AANLkTimqPKMYsVvcVoYjSpf2hU5-dy-4fWvYK3M33xe0%40mail.gmail.com&forum_name=d2rq-map-devel>Hope
you find this helpful.

Regards

Luis I. Larrateguy

On Wed, Dec 8, 2010 at 8:47 AM, Kamler Hammez <[email protected]> wrote:

> Thanks Richard,
>
> As constraints aren't represented, so formulating them as 
> RIF<http://www.w3.org/2005/rules/wiki/RIF_In_RDF>rules and adding them to the 
> obtained ontology would be a solution ?
>
> --
> Kamler  Hammez
>
> 2010/12/8 Richard Cyganiak <[email protected]>
>
>
>> On 8 Dec 2010, at 05:07, Kamler Hammez wrote:
>>
>>  Hello,
>>>
>>> When applying the script : generate-mapping *,* D2RQ starts to generate a
>>> default mapping file, and it does allow users to provide additional
>>> labels,
>>> comments, and properties after this ; and apprently it is also possible
>>> to
>>> play with the whole mapping file.
>>> I wanted to know wether it's possible to do changes on those rules that
>>> generate the mapping file and customize them, in order to add more
>>> specifications on how I would like the process of the mapping will be
>>> executed | And to add for example such functions to the D2RQ vocabulary
>>> that
>>> will be applied in execution-time to filtre which data or property to
>>> choose
>>> from the Database,  and so forth.. ?
>>>
>>
>> These rules are written in Java and you can change them by modifying the
>> Java sources of D2RQ. The key file is this:
>> /src/de/fuberlin/wiwiss/d2rq/mapgen/MappingGenerator.java
>>
>>
>>  - Next question is wether it is possible to use the D2RQ engine separatly
>>> of
>>> the D2R Server?
>>>
>>
>> Yes, you can use it via the Jena API or via the dump-rdf command line
>> script that's provided with the download. Refer to the manual for details.
>>
>>
>>  - Last: How D2RQ represent constraints that a database may contain?
>>>
>>
>> It doesn't. It just represents the data.
>>
>> Best,
>> Richard
>>
>>
>>
>>> Regards,
>>> --------
>>> Kamler  Hammez
>>>
>>> ------------------------------------------------------------------------------
>>> What happens now with your Lotus Notes apps - do you make another costly
>>> upgrade, or settle for being marooned without product support? Time to
>>> move
>>> off Lotus Notes and onto the cloud with Force.com, apps are easier to
>>> build,
>>> use, and manage than apps on traditional platforms. Sign up for the Lotus
>>> Notes Migration Kit to learn more.
>>> http://p.sf.net/sfu/salesforce-d2d_______________________________________________
>>> d2rq-map-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel
>>>
>>
>>
>
>
> --
> Kamler  Hammez
>
>
>
>
>
> ------------------------------------------------------------------------------
> What happens now with your Lotus Notes apps - do you make another costly
> upgrade, or settle for being marooned without product support? Time to move
> off Lotus Notes and onto the cloud with Force.com, apps are easier to
> build,
> use, and manage than apps on traditional platforms. Sign up for the Lotus
> Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
> _______________________________________________
> 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
------------------------------------------------------------------------------
_______________________________________________
d2rq-map-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel

Reply via email to