| java.lang.Object com.hp.hpl.jena.graph.impl.BaseGraphMaker com.hp.hpl.jena.db.impl.GraphRDBMaker
GraphRDBMaker | public class GraphRDBMaker extends BaseGraphMaker (Code) | | A GraphFactory that produces Graphs from database connections.
The connection is supplied when the factory is constructed. All the
created graphs are tracked so that we can supply a removeAll call
to dispose of them.
author: kers |
defaultGraph | protected Graph defaultGraph(Code) | | The default graph for this maker, or null if there isn't one.
|
reificationStyle | int reificationStyle(Code) | | |
GraphRDBMaker | public GraphRDBMaker(IDBConnection c, ReificationStyle style)(Code) | | Construct a new GraphRDB factory based on the supplied DB connection.
Parameters: c - the database connection |
augmentDescription | protected void augmentDescription(Graph g, Node self)(Code) | | Augment the maker description of this maker with RDB-specific properties.
TODO do this
|
close | public void close()(Code) | | |
createGraph | public Graph createGraph()(Code) | | Answer an "anonymous", freshly-created graph. We fake this by creating
a graph with the name "anon_"+UID().toString. This may lead to problems
later; eg such a graph may need to be deleted when the connection is
closed.
TODO resolve this issue.
|
createGraph | public Graph createGraph(String name, boolean strict)(Code) | | Create an RDB graph and remember its name.
|
freshGraphName | public String freshGraphName()(Code) | | Answer a freshly-synthesised "anonymous" name.
|
getGraph | public Graph getGraph()(Code) | | Answer the default graph of this Maker; make it if necessary.
|
getMakerClass | public Node getMakerClass()(Code) | | Answer the RDFS class of this RDB GraphMaker
JenaModelSpec.RDBMakerClass [as node] |
hasGraph | public boolean hasGraph(String name)(Code) | | Return true iff there's a graph with the given name.
|
openGraph | public Graph openGraph(String name, boolean strict)(Code) | | Open an existing graph; if there's no such graph, but failIfAbsent is
false, create a new one. In any case, return that graph.
|
removeAll | public void removeAll()(Code) | | Remove all the graphs that have been created by this factory.
|
removeGraph | public void removeGraph(String name)(Code) | | Remove a graph from the database - at present, this has to be done by
opening it first.
|
|
|