On Tue, Nov 13, 2012 at 2:54 PM, Minto van der Sluis <[email protected]> wrote:
> > Is it possible to have multiple backends at runtime? Yes, If you have multiple multiple instances of WeightedTcProvider the graphs will all be available via the TcManager, new Graphs will always be created in the TcProvider with the highest Weight. In fact in a standard clerezza instance there are multiple backends, one in which new graphs are created (the TDB based one) and other providing read-only "virtual" graphs. > How can this be achieved? Is it also possible to move graphs from one > backend to another? This might be what I am looking for, moving a graph > from an in-memory to a persistent backend. > Moving a graph to be available to a new Backend (TcProvider) but under the same name would be trickier. Just copying the triples is trivial: targetMGraph.addAll(sourceGraph). Cheers, Reto
