Hello Diogo,
the only way I found to do something similar to what you want to do is by
serving D2RQ in a Joseki (or using D2RServer).
By starting the D2RServer with the option -b servername, you'll your
ontology under that namespace. Of course that will be only be useful if you
like your servername as your namespace.
I'm looking for the same stuff, if I accomplish something will let you know.

Regards

Luis Larrateguy

On Thu, May 26, 2011 at 10:45 AM, Diogo FC Patrao <[email protected]>wrote:

> Hello,
>
> I'm working on a mapping file that create instances for an existing
> ontology. I plan to dump the rdf data and import it into the ontology.
>
> I defined the base uri for my ontology on a @prefix tag, e.g.
>
> @prefix bec: <http://blablabla.com/ontologies/bec.owl#>
>
>
> I would like to use this prefix as the base for instance URI, but I have to
> write:
>
> map:Paciente a d2rq:ClassMap;
>     d2rq:dataStorage map:database;
>     d2rq:uriPattern "http://blablabla.com/ontologies/bec.owl#Paciente
> @@PEP.RGH@@";
>     d2rq:class bec:Paciente
> .
>
> Is there any way I can use the bec: prefix, like
>
> d2rq:uriPattern "bec:@@PEP.RGH@@";
>
> so I can save a few keystrokes?
>
>
>
> --
> diogo patrĂ£o
>
>
>
>
>
> ------------------------------------------------------------------------------
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery,
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now.
> http://p.sf.net/sfu/quest-d2dcopy1
> _______________________________________________
> 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
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
d2rq-map-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel

Reply via email to