public class SimpleGraphMaker extends BaseGraphMaker
| Constructor and Description |
|---|
SimpleGraphMaker()
Initialise a SimpleGraphMaker with reification style Minimal
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this factory - we choose to do nothing.
|
Graph |
create() |
Graph |
createGraph(String name,
boolean strict)
Create a graph and record it with the given name in the local map.
|
boolean |
hasGraph(String name)
Return true iff we have a graph with the given name
|
ExtendedIterator<String> |
listGraphs()
Answer an [extended] iterator where each element is the name of a graph in
the maker, and the complete sequence exhausts the set of names.
|
Graph |
openGraph()
Answer the default graph of this GraphMaker, if it has one.
|
Graph |
openGraph(String name,
boolean strict)
Open (aka find) a graph with the given name in the local map.
|
void |
removeGraph(String name)
Remove the mapping from name to any graph from the local map.
|
createGraph, createGraph, getGraph, openGraphpublic SimpleGraphMaker()
public Graph create()
public Graph createGraph(String name, boolean strict)
name - the name to give to the new graphstrict - true to cause existing bindings to throw an exceptionpublic Graph openGraph(String name, boolean strict)
name - the name of the graph to find and returnstrict - false to create a new one if one doesn't already existpublic Graph openGraph()
GraphMakeropenGraph in interface GraphMakeropenGraph in class BaseGraphMakerpublic void removeGraph(String name)
name - the name to disassociatepublic boolean hasGraph(String name)
name - the name of the graph to look forpublic void close()
public ExtendedIterator<String> listGraphs()
GraphMakerLicenced under the Apache License, Version 2.0