Hello Dominique

What I did (on a similar problem) was to lazily run several d2r-servers,
one for each database I wanted to serve, on different ports (2020, 2021,
2022, and so on)

You could* declare several d2r:database and map all you want in one single
instance, but it has already been stated by Richard that's not guarranteed
to work, and it's not what d2rq was intended to do.

My personal experience is that, as long as you don't map tables from
different databases into the same class, you should be fine. Example, say
you have dbs django1 and django2, and both have a table named "t". You
should map:

django1.t => namespace:class_t_1
django2.t => namespace:class_t_2

DON'T QUERY for both classes on the same sparql query. That is,

SELECT * {
  ?a a class_t_1;
  ?b a class_t_2;
}

That will work only if you query one concept at a time. Or else D2R would
join tables on different databases assuming they're in the same one, and
you probably don't want that.





--
diogo patrão





On Tue, Nov 29, 2011 at 7:10 AM, Dominique Guardiola
<dguardi...@quinode.fr>wrote:

> Hello
>
> I need to map different django sites hosted on the same server with D2R
> One way to do it would be to use the same SQL database for all sites, but
> this make all triples part of the same graph, which is not the case
>
> Regarding the java servlet, how is this possible ?
> - running different configuration mapping under the same servlet ?
> - running different servlets in the same container (I use jetty) ?
>
> thanks for your help
>
> --
> Dominique Guardiola, QUINODE
> • http://www.quinode.fr/
> • Tel : 04.27.86.84.37
> • Mob : 06.15.13.22.27
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, 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-novd2d
> _______________________________________________
> d2rq-map-devel mailing list
> d2rq-map-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, 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-novd2d
_______________________________________________
d2rq-map-devel mailing list
d2rq-map-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel

Reply via email to