java.lang.Object
org.apache.jena.ontology.models.BaseGraphMaker
- All Implemented Interfaces:
GraphMaker
- Direct Known Subclasses:
SimpleGraphMaker
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 -
Method Summary
Modifier and TypeMethodDescriptionMake a fresh anonymous graph.createGraph(String name) A non-strict create.getGraph()Answer the default graph for this maker.Answer the default graph of this GraphMaker, if it has one.A non-strict open.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.ontology.models.GraphMaker
close, createGraph, hasGraph, listGraphs, openGraph, removeGraph
-
Constructor Details
-
BaseGraphMaker
public BaseGraphMaker()Construct the base level of a graph maker.
-
-
Method Details
-
getGraph
Answer the default graph for this maker. If we haven't already made it, make it now.- Specified by:
getGraphin interfaceGraphMaker- Returns:
- the same default graph each time
-
openGraph
Description copied from interface:GraphMakerAnswer the default graph of this GraphMaker, if it has one. If not, throw an exception.- Specified by:
openGraphin interfaceGraphMaker
-
createGraph
Make a fresh anonymous graph.- Specified by:
createGraphin interfaceGraphMaker- Returns:
- a fresh anonymous graph
-
createGraph
A non-strict create.- Specified by:
createGraphin interfaceGraphMaker- See Also:
-
openGraph
A non-strict open.- Specified by:
openGraphin interfaceGraphMaker- See Also:
-