Package org.apache.jena.graph.impl
Class BaseGraphMaker
- java.lang.Object
-
- org.apache.jena.graph.impl.BaseGraphMaker
-
- All Implemented Interfaces:
GraphMaker
- Direct Known Subclasses:
SimpleGraphMaker
public abstract class BaseGraphMaker extends java.lang.Object implements GraphMaker
This base class provides convenience functions for the three "usual" graph makers and a place to hold the reification style for the graphs it constructs.
-
-
Constructor Summary
Constructors Constructor Description BaseGraphMaker()
Construct the base level of a graph maker.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Graph
createGraph()
Make a fresh anonymous graph.Graph
createGraph(java.lang.String name)
A non-strict create.Graph
getGraph()
Answer the default graph for this maker.Graph
openGraph()
Answer the default graph of this GraphMaker, if it has one.Graph
openGraph(java.lang.String name)
A non-strict open.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jena.graph.GraphMaker
close, createGraph, hasGraph, listGraphs, openGraph, removeGraph
-
-
-
-
Method Detail
-
getGraph
public Graph getGraph()
Answer the default graph for this maker. If we haven't already made it, make it now.- Specified by:
getGraph
in interfaceGraphMaker
- Returns:
- the same default graph each time
-
openGraph
public Graph openGraph()
Description copied from interface:GraphMaker
Answer the default graph of this GraphMaker, if it has one. If not, throw an exception.- Specified by:
openGraph
in interfaceGraphMaker
-
createGraph
public Graph createGraph()
Make a fresh anonymous graph.- Specified by:
createGraph
in interfaceGraphMaker
- Returns:
- a fresh anonymous graph
-
createGraph
public Graph createGraph(java.lang.String name)
A non-strict create.- Specified by:
createGraph
in interfaceGraphMaker
- See Also:
GraphMaker.createGraph(java.lang.String)
-
openGraph
public Graph openGraph(java.lang.String name)
A non-strict open.- Specified by:
openGraph
in interfaceGraphMaker
- See Also:
GraphMaker.openGraph(java.lang.String)
-
-