public class ReifierStd extends Object
Modifier and Type | Method and Description |
---|---|
static ExtendedIterator<Node> |
allNodes(Graph graph)
return an iterator over all the nodes that are reifiying something in the
graph
|
static ExtendedIterator<Node> |
allNodes(Graph graph,
Triple t)
return an iterator over all the nodes that are reifiying t in the graph
|
static ExtendedIterator<Triple> |
findEither(Graph graph,
Triple match,
boolean showHidden)
Answer an iterator over the reification triples of this Reifier, or an empty
iterator - if showHidden is false, only the exposed triples, otherwise only
the concealed ones.
|
static ExtendedIterator<Triple> |
findExposed(Graph graph,
Triple match)
Answer an iterator over all the reification triples that this Reifier exposes
(ie all if Standard, none otherwise) that match m.
|
static Triple |
getTriple(Graph graph,
Node n)
Answer the triple associated with the node
n . |
static boolean |
hasTriple(Graph graph,
Node node)
true iff _n_ is associated with some triple.
|
static boolean |
hasTriple(Graph graph,
Triple t) |
static Node |
reifyAs(Graph graph,
Node node,
Triple triple)
note the triple _t_ as reified using _n_ as its representing node.
|
static void |
remove(Graph graph,
Node node,
Triple triple)
remove any existing binding for _n_; hasNode(n) will return false and
getTriple(n) will return null.
|
static void |
remove(Graph graph,
Triple triple)
remove all bindings which map to this triple.
|
public static ExtendedIterator<Triple> findEither(Graph graph, Triple match, boolean showHidden)
public static ExtendedIterator<Triple> findExposed(Graph graph, Triple match)
public static Triple getTriple(Graph graph, Node n)
n
.n
- the node to use as the keynull
if nonepublic static boolean hasTriple(Graph graph, Triple t)
public static boolean hasTriple(Graph graph, Node node)
public static ExtendedIterator<Node> allNodes(Graph graph)
public static ExtendedIterator<Node> allNodes(Graph graph, Triple t)
public static Node reifyAs(Graph graph, Node node, Triple triple)
public static void remove(Graph graph, Triple triple)
Licenced under the Apache License, Version 2.0