|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fuberlin.wiwiss.ng4j.impl.NamedGraphImpl
public class NamedGraphImpl
NamedGraph implementation that wraps a Graph
instance
and a name for that graph. All methods inherited from the
Graph interface are delegated to the underlying Graph
instance.
NamedGraph instances can be created from any Jena Graph
instance, or by calling NamedGraphSet.createGraph(Node)
on a NamedGraphSet.
TODO: Implement equals, but with what semantics?
Graph
,
NamedGraphSet.createGraph(Node)
Field Summary |
---|
Fields inherited from interface com.hp.hpl.jena.graph.Graph |
---|
emptyGraph |
Constructor Summary | |
---|---|
NamedGraphImpl(Node graphName,
Graph graph)
Creates a NamedGraph from a Graph instance and a name. |
|
NamedGraphImpl(String graphNameURI,
Graph graph)
Creates a NamedGraph from a Graph instance and a name. |
Method Summary | |
---|---|
void |
add(Triple t)
|
void |
close()
|
boolean |
contains(Node s,
Node p,
Node o)
|
boolean |
contains(Triple t)
|
void |
delete(Triple t)
|
boolean |
dependsOn(Graph other)
|
ExtendedIterator |
find(Node s,
Node p,
Node o)
|
ExtendedIterator |
find(TripleMatch m)
|
BulkUpdateHandler |
getBulkUpdateHandler()
|
Capabilities |
getCapabilities()
|
GraphEventManager |
getEventManager()
|
Node |
getGraphName()
Returns the URI of the named graph. |
PrefixMapping |
getPrefixMapping()
|
Reifier |
getReifier()
|
TransactionHandler |
getTransactionHandler()
|
boolean |
isClosed()
|
boolean |
isEmpty()
|
boolean |
isIsomorphicWith(Graph g)
|
QueryHandler |
queryHandler()
|
int |
size()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NamedGraphImpl(Node graphName, Graph graph)
graphName
- a name for the graph; must be an URI Nodegraph
- a graph instanceNamedGraphSet.createGraph(Node)
public NamedGraphImpl(String graphNameURI, Graph graph)
graphNameURI
- a name for the graph; must be an URIgraph
- a graph instanceNamedGraphSet.createGraph(Node)
Method Detail |
---|
public Node getGraphName()
getGraphName
in interface NamedGraph
public void close()
close
in interface Graph
public boolean isClosed()
isClosed
in interface Graph
public boolean contains(Node s, Node p, Node o)
contains
in interface Graph
public boolean contains(Triple t)
contains
in interface Graph
public void delete(Triple t) throws DeleteDeniedException
delete
in interface Graph
DeleteDeniedException
public boolean dependsOn(Graph other)
dependsOn
in interface Graph
public ExtendedIterator find(Node s, Node p, Node o)
find
in interface Graph
public ExtendedIterator find(TripleMatch m)
find
in interface Graph
public BulkUpdateHandler getBulkUpdateHandler()
getBulkUpdateHandler
in interface Graph
public Capabilities getCapabilities()
getCapabilities
in interface Graph
public GraphEventManager getEventManager()
getEventManager
in interface Graph
public PrefixMapping getPrefixMapping()
getPrefixMapping
in interface Graph
public Reifier getReifier()
getReifier
in interface Graph
public TransactionHandler getTransactionHandler()
getTransactionHandler
in interface Graph
public boolean isEmpty()
isEmpty
in interface Graph
public boolean isIsomorphicWith(Graph g)
isIsomorphicWith
in interface Graph
public QueryHandler queryHandler()
queryHandler
in interface Graph
public int size()
size
in interface Graph
public void add(Triple t) throws AddDeniedException
add
in interface GraphAdd
AddDeniedException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |