com.hp.hpl.jena.sparql.core
Class DatasetGraphFactory

java.lang.Object
  extended by com.hp.hpl.jena.sparql.core.DatasetGraphFactory

public class DatasetGraphFactory
extends Object


Nested Class Summary
static interface DatasetGraphFactory.GraphMaker
          Interface for makign graphs when a dataset needs to add a new graph.
 
Field Summary
static DatasetGraphFactory.GraphMaker graphMakerNull
          A graph maker that doesn't make graphs
 
Constructor Summary
DatasetGraphFactory()
           
 
Method Summary
static DatasetGraph create(DatasetGraph dsg)
          Create a DatasetGraph based on an existing one; this is a structure copy of the dataset struture but graphs are shared
static DatasetGraph create(com.hp.hpl.jena.graph.Graph graph)
          Create a DatasetGraph starting with a single graph.
static DatasetGraph createMem()
          Create a DatasetGraph which has all graphs in memory.
static DatasetGraph createMemFixed()
           
static DatasetGraph createOneGraph(com.hp.hpl.jena.graph.Graph graph)
          Create a DatasetGraph which only ever has a single default graph.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graphMakerNull

public static DatasetGraphFactory.GraphMaker graphMakerNull
A graph maker that doesn't make graphs

Constructor Detail

DatasetGraphFactory

public DatasetGraphFactory()
Method Detail

create

public static DatasetGraph create(DatasetGraph dsg)
Create a DatasetGraph based on an existing one; this is a structure copy of the dataset struture but graphs are shared


create

public static DatasetGraph create(com.hp.hpl.jena.graph.Graph graph)
Create a DatasetGraph starting with a single graph. New graphs must be explicitly added.


createOneGraph

public static DatasetGraph createOneGraph(com.hp.hpl.jena.graph.Graph graph)
Create a DatasetGraph which only ever has a single default graph.


createMem

public static DatasetGraph createMem()
Create a DatasetGraph which has all graphs in memory.


createMemFixed

public static DatasetGraph createMemFixed()


Licenced under the Apache License, Version 2.0