|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.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 NamedGraphpublic void close()
close in interface Graphpublic boolean isClosed()
isClosed in interface Graph
public boolean contains(Node s,
Node p,
Node o)
contains in interface Graphpublic boolean contains(Triple t)
contains in interface Graph
public void delete(Triple t)
throws DeleteDeniedException
delete in interface GraphDeleteDeniedExceptionpublic boolean dependsOn(Graph other)
dependsOn in interface Graph
public ExtendedIterator find(Node s,
Node p,
Node o)
find in interface Graphpublic ExtendedIterator find(TripleMatch m)
find in interface Graphpublic BulkUpdateHandler getBulkUpdateHandler()
getBulkUpdateHandler in interface Graphpublic Capabilities getCapabilities()
getCapabilities in interface Graphpublic GraphEventManager getEventManager()
getEventManager in interface Graphpublic PrefixMapping getPrefixMapping()
getPrefixMapping in interface Graphpublic Reifier getReifier()
getReifier in interface Graphpublic TransactionHandler getTransactionHandler()
getTransactionHandler in interface Graphpublic boolean isEmpty()
isEmpty in interface Graphpublic boolean isIsomorphicWith(Graph g)
isIsomorphicWith in interface Graphpublic QueryHandler queryHandler()
queryHandler in interface Graphpublic int size()
size in interface Graph
public void add(Triple t)
throws AddDeniedException
add in interface GraphAddAddDeniedExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||