On 07/08/14 06:53, Claude Warren wrote:
Simple solution is to use the TDB In memory version.
TDBFactory.createDataset();

Yes; behind the scenes, TDB uses "GraphView" which you can use directly or via DatasetGraphViewGraphs which wraps an existing DatasetGraph in the machinery.

TDB also, separately, handles union graph in SPARQL queries because it can do a good job knowing the internal details of indexing.

        new DatasetGraphViewGraphs(...)

        GraphView.createNamedGraph(dsg, Quad.unionGraph) ;

An alternative approach to use GraphUnionRead which creates a Graph which is a view of a collection of graphs as the union.

All unions are read only and dynamic (updating the associated named graphs is visible in the union).

        Andy





On Wed, Aug 6, 2014 at 11:40 PM, Arthur Ryman <[email protected]> wrote:

Is it possible to configure an in-memory dataset so that the unnamed graph
is the union of all named graphs? I know how to do this for TDB but can't
see how to do this for an in-memory dataset. Thx.

Regards,
___________________________________________________________________________
Arthur Ryman, PhD

Chief Data Officer, Rational
Chief Architect, Portfolio & Strategy Management
Distinguished Engineer | Master Inventor | Academy of Technology

Toronto Lab | +1-905-413-3077 (office) | +1-416-939-5063 (mobile)






Reply via email to