com.hp.hpl.jena.sparql.graph
Class GraphFactory

java.lang.Object
  extended by com.hp.hpl.jena.sparql.graph.GraphFactory

public class GraphFactory
extends Object

Ways to make graphs and models


Constructor Summary
GraphFactory()
           
 
Method Summary
static Graph createDataBagGraph(ThresholdPolicy<Triple> thresholdPolicy)
          A graph backed by a DistinctDataBag<Triple>.
static Graph createDefaultGraph()
          Create a graph - ARQ-wide default type
static Graph createGraphMem()
          Create a graph that is a Jena memory graph
static Graph createJenaDefaultGraph()
          Create a graph - always the Jena default graph type
static Graph createPlainGraph()
          Very simple graph that uses same-term for find() (small-scale use only)
static Model makeDataBagModel(ThresholdPolicy<Triple> thresholdPolicy)
          Create a model over a DataBag graph (will spill to disk when it get large)
static Model makeDefaultModel()
          Create a model over a default graph (ARQ-wide for degault graph type)
static Model makeJenaDefaultModel()
          Guaranteed call-through to Jena's ModelFactory operation
static Model makePlainModel()
          Create a model over a plain graph (small-scale use only)
static Graph sinkGraph()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphFactory

public GraphFactory()
Method Detail

createGraphMem

public static Graph createGraphMem()
Create a graph that is a Jena memory graph

See Also:
createDefaultGraph()

createDefaultGraph

public static Graph createDefaultGraph()
Create a graph - ARQ-wide default type


createJenaDefaultGraph

public static Graph createJenaDefaultGraph()
Create a graph - always the Jena default graph type


createPlainGraph

public static Graph createPlainGraph()
Very simple graph that uses same-term for find() (small-scale use only)


sinkGraph

public static Graph sinkGraph()

createDataBagGraph

public static Graph createDataBagGraph(ThresholdPolicy<Triple> thresholdPolicy)
A graph backed by a DistinctDataBag<Triple>.


makeJenaDefaultModel

public static Model makeJenaDefaultModel()
Guaranteed call-through to Jena's ModelFactory operation


makeDefaultModel

public static Model makeDefaultModel()
Create a model over a default graph (ARQ-wide for degault graph type)


makePlainModel

public static Model makePlainModel()
Create a model over a plain graph (small-scale use only)


makeDataBagModel

public static Model makeDataBagModel(ThresholdPolicy<Triple> thresholdPolicy)
Create a model over a DataBag graph (will spill to disk when it get large)



Licenced under the Apache License, Version 2.0