java.lang.Object
org.apache.jena.sparql.graph.GraphFactory
Ways to make graphs and models
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Graph
Create a graph - ARQ-wide default typestatic Graph
Create a graph that is a Jena memory graph.static Graph
Create a graph - always the Jena default graph typestatic Graph
Graph that uses same-term for find() and contains().static GraphTxn
Create an in-memory, thread-safe, transactional graph.static Model
Create a model over a default graph (ARQ-wide for default graph type)static Model
Guaranteed call-through to Jena's ModelFactory operationstatic Model
Create a model over a plain graph (small-scale use only)static Graph
-
Constructor Details
-
GraphFactory
public GraphFactory()
-
-
Method Details
-
createGraphMem
Create a graph that is a Jena memory graph. The created graph is not thread safe. Inappropriate use of graph iterators and streams may causeConcurrentModificationException
.- See Also:
-
createTxnGraph
Create an in-memory, thread-safe, transactional graph.This fully supports transactions, including abort to roll-back changes. It provides "autocommit" if operations are performed outside a transaction. The implementation adds a begin/commit around each add or delete so overheads can accumulate).
-
createDefaultGraph
Create a graph - ARQ-wide default type -
createJenaDefaultGraph
Create a graph - always the Jena default graph type -
createPlainGraph
Graph that uses same-term for find() and contains(). -
sinkGraph
-
makeJenaDefaultModel
Guaranteed call-through to Jena's ModelFactory operation -
makeDefaultModel
Create a model over a default graph (ARQ-wide for default graph type) -
makePlainModel
Create a model over a plain graph (small-scale use only)
-