-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface for making graphs when a dataset needs to add a new graph. -
Field Summary
FieldsModifier and TypeFieldDescriptionA graph maker that creates unnamed Jena default graphsA graph maker that doesn't make graphs. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DatasetGraphClone the structure of aDatasetGraph.static DatasetGraphcreate()Create an in-memoryDataset.static DatasetGraphcreate(org.apache.jena.graph.Graph dftGraph) Create a DatasetGraph starting with a single graph.static DatasetGraphCreate a general-purposeDatasetGraph.
Any graphs needed are in-memory unless explicitly added withDatasetGraph.addGraph(Node, Graph).static DatasetGraphcreateGeneral(org.apache.jena.graph.Graph dftGraph) Create a general-purposeDatasetGraph.
Any graphs needed are in-memory unless explicitly added withDatasetGraph.addGraph(Node, Graph).static DatasetGraphCreate an in-memory, transactionalDataset.static DatasetGraphcreateWithGraphMaker(DatasetGraphFactory.GraphMaker graphMaker) Create a DatasetGraph using theDatasetGraphFactory.GraphMakerfor all graphs.static DatasetGraphempty()An always emptyDatasetGraph.static DatasetGraphwrap(org.apache.jena.graph.Graph graph) Create a DatasetGraph which only ever has a single default graph.
-
Field Details
-
graphMakerNull
A graph maker that doesn't make graphs. -
graphMakerMem
A graph maker that creates unnamed Jena default graphs
-
-
Constructor Details
-
DatasetGraphFactory
public DatasetGraphFactory()
-
-
Method Details
-
create
Create an in-memoryDataset.See also
createTxnMem()for a transactional dataset.This implementation copies models when
Dataset.addNamedModel(String, Model)is called.This implementation provides "best effort" transactions; it only provides MRSW locking. Use
createTxnMem()for a proper in-memory transactionalDatasetGraph.- See Also:
-
createTxnMem
Create an in-memory, transactionalDataset.This fully supports transactions, including abort to roll-back changes. It provides "autocommit" if operations are performed outside a transaction but with a performance impact (the implementation adds a begin/commit around each add or delete so overheads can accumulate).
- Returns:
- a transactional, in-memory, modifiable DatasetGraph
-
createGeneral
Create a general-purposeDatasetGraph.
Any graphs needed are in-memory unless explicitly added withDatasetGraph.addGraph(Node, Graph).This dataset type can contain graphs from any source. These are held as links to the supplied graph and not copied.
This dataset does not support the graph indexing feature of jena-text.
This dataset does not support serialized transactions (it only provides MRSW locking).
- Returns:
- a general-purpose Dataset
- See Also:
-
createGeneral
Create a general-purposeDatasetGraph.
Any graphs needed are in-memory unless explicitly added withDatasetGraph.addGraph(Node, Graph).This dataset type can contain graphs from any source. These are held as links to the supplied graph and not copied.
This dataset does not support the graph indexing feature of jena-text.
This dataset does not support serialized transactions (it only provides MRSW locking).
- Returns:
- a general-purpose Dataset
- See Also:
-
cloneStructure
Clone the structure of aDatasetGraph. -
create
Create a DatasetGraph starting with a single graph. New graphs that are explicitly added are held by reference. -
createWithGraphMaker
Create a DatasetGraph using theDatasetGraphFactory.GraphMakerfor all graphs. -
wrap
Create a DatasetGraph which only ever has a single default graph. -
empty
An always emptyDatasetGraph. It has one graph (the default graph) with zero triples. No changes allowed - this is not a sink.
-