|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.trippi.nodegraph.NodeGraph
public abstract class NodeGraph
A Graph
that provides direct node access.
This extension of the Graph interface is intended to simplify the task
of node-by-node graph traversal.
Constructor Summary | |
---|---|
NodeGraph()
|
Method Summary | |
---|---|
abstract NodeResults |
findObjects(org.jrdf.graph.Node subject,
org.jrdf.graph.Node predicate)
Iterate distinct objects of triples in the graph with the given subject and predicate. |
abstract NodeResults |
findPredicates(org.jrdf.graph.Node subject,
org.jrdf.graph.Node object)
Iterate distinct predicates of triples in the graph with the given subject and object. |
abstract NodeResults |
findSubjects(org.jrdf.graph.Node predicate,
org.jrdf.graph.Node object)
Iterate distinct subjects of triples in the graph with the given predicate and object. |
abstract TripleResults |
findTriples(org.jrdf.graph.Node subject,
org.jrdf.graph.Node predicate,
org.jrdf.graph.Node object)
Iterate triples in the graph that match a given subject, predicate and object. |
static NodeGraph |
getInstance(org.jrdf.graph.Graph graph)
Get an instance that wraps the given JRDF Graph, or a new memory-backed instance if graph is * given as null . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jrdf.graph.Graph |
---|
add, add, add, contains, contains, find, find, getElementFactory, getNumberOfTriples, getTripleFactory, isEmpty, remove, remove, remove |
Constructor Detail |
---|
public NodeGraph()
Method Detail |
---|
public static NodeGraph getInstance(org.jrdf.graph.Graph graph) throws org.jrdf.graph.GraphException
graph
is * given as null
.
If the given graph
is already an instance of
NodeGraph
, it will simply be casted and returned.
org.jrdf.graph.GraphException
public abstract NodeResults findSubjects(org.jrdf.graph.Node predicate, org.jrdf.graph.Node object) throws org.jrdf.graph.GraphException
null
it will
be treated as an unconstrained value (all will match).
org.jrdf.graph.GraphException
public abstract NodeResults findPredicates(org.jrdf.graph.Node subject, org.jrdf.graph.Node object) throws org.jrdf.graph.GraphException
null
it will
be treated as an unconstrained value (all will match).
org.jrdf.graph.GraphException
public abstract NodeResults findObjects(org.jrdf.graph.Node subject, org.jrdf.graph.Node predicate) throws org.jrdf.graph.GraphException
null
it will
be treated as an unconstrained value (all will match).
org.jrdf.graph.GraphException
public abstract TripleResults findTriples(org.jrdf.graph.Node subject, org.jrdf.graph.Node predicate, org.jrdf.graph.Node object) throws org.jrdf.graph.GraphException
null
it will
be treated as an unconstrained value (all will match).
org.jrdf.graph.GraphException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |