Apache Jena is migrating to term semantics graph for consistency across all in-memory and persistent storage graphs
-
Method Summary
Modifier and TypeMethodDescriptionstatic GraphAnswer a memory-based graph.static GraphAnswer a memory-based graph with "same term" semantics This method will continue to provide the preferred general purpose "same term" graph.static GraphAnswer a memory-based graph with "same value" semantics used in Jena2, Jena3 and Jena4 for in-memory graphs.static GraphThis function will track the preferred general purpose graph.static GraphA graph that stores triples in memory.static GraphA graph that stores triples in memory.static GraphA graph that stores triples in memory.static booleanGet the default mode for in-memory for graphs : same term (true) or same value (false).static Graphempty()Immutable graph with no triplesstatic voidsetDftGraphSameTerm(boolean value) Set the default mode for in-memory graphs : same term (true) or same value (false).
-
Method Details
-
setDftGraphSameTerm
public static void setDftGraphSameTerm(boolean value) Set the default mode for in-memory graphs : same term (true) or same value (false).This is initially set with system property "jena:graphSameTerm" with the system default is same value (Jena4).
This affects
createDefaultGraph(). -
dftGraphSameTerm
public static boolean dftGraphSameTerm()Get the default mode for in-memory for graphs : same term (true) or same value (false).This is used by
createDefaultGraph(). -
createDefaultGraph
Answer a memory-based graph. This is the system default. -
createGraphMem
This function will track the preferred general purpose graph. It will switch from "same value" to "same term" -
createDefaultGraphSameValue
Answer a memory-based graph with "same value" semantics used in Jena2, Jena3 and Jena4 for in-memory graphs. Jena5 may change to "same term" semantics. This method will continue to provide a "same value" graph. -
createDefaultGraphSameTerm
Answer a memory-based graph with "same term" semantics This method will continue to provide the preferred general purpose "same term" graph. -
createGraphMem2Basic
A graph that stores triples in memory. This class is not thread-safe.- This graph provides term equality.
- Iterator over this graph does not provide Iterator.remove
It has improved performance compared to
GraphMemwith a simpler implementation, primarily due to not providing support forIterator.remove().See
GraphMem2Legacyfor details. -
createGraphMem2
A graph that stores triples in memory. This class is not thread-safe.- This graph provides term equality.
- Iterator over this graph does not provide Iterator.remove
This graph implementation provides improved performance with a minor increase in memory usage.
See
GraphMem2Fastfor details. -
createGraphMem2Roaring
A graph that stores triples in memory. This class is not thread-safe.- This graph provides term equality.
- Iterator over this graph does not provide Iterator.remove
GraphMem2Roaringis focused on handling large in-memory graphs. It uses Roaring bitmaps for indexing.See
GraphMem2Roaringfor details. -
empty
Immutable graph with no triples
-