Class SafeGraph
- java.lang.Object
-
- org.apache.jena.graph.impl.WrappedGraph
-
- org.apache.jena.reasoner.rulesys.impl.SafeGraph
-
- All Implemented Interfaces:
Graph
,GraphWithPerform
public class SafeGraph extends WrappedGraph implements Graph
A SafeGraph wraps a graph which might contain generalized RDF triples and hides them from API queries so that consumers of it are safe (but can use getRawGraph() to get back the unsafe graph.
-
-
Field Summary
-
Fields inherited from interface org.apache.jena.graph.Graph
emptyGraph
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtendedIterator<Triple>
find(Node s, Node p, Node o)
Returns an iterator over Triples matching a pattern.ExtendedIterator<Triple>
find(Triple triple)
Returns an iterator over all the Triples that match the triple pattern.Graph
getRawGraph()
Return the unfiltered version of the graph-
Methods inherited from class org.apache.jena.graph.impl.WrappedGraph
add, clear, close, contains, contains, delete, dependsOn, getCapabilities, getEventManager, getPrefixMapping, getTransactionHandler, getWrapped, isClosed, isEmpty, isIsomorphicWith, performAdd, performDelete, remove, size
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jena.graph.Graph
add, add, clear, close, contains, contains, delete, delete, dependsOn, find, getCapabilities, getEventManager, getPrefixMapping, getTransactionHandler, isClosed, isEmpty, isIsomorphicWith, remove, size, stream, stream
-
-
-
-
Constructor Detail
-
SafeGraph
public SafeGraph(Graph base)
Wrap a graph to hide generalized triples
-
-
Method Detail
-
find
public ExtendedIterator<Triple> find(Triple triple)
Description copied from interface:Graph
Returns an iterator over all the Triples that match the triple pattern.- Specified by:
find
in interfaceGraph
- Overrides:
find
in classWrappedGraph
- Parameters:
triple
- a Triple encoding the pattern to look for- Returns:
- an iterator of all triples in this graph that match m
-
find
public ExtendedIterator<Triple> find(Node s, Node p, Node o)
Description copied from interface:Graph
Returns an iterator over Triples matching a pattern.- Specified by:
find
in interfaceGraph
- Overrides:
find
in classWrappedGraph
- Returns:
- an iterator of triples in this graph matching the pattern.
-
getRawGraph
public Graph getRawGraph()
Return the unfiltered version of the graph
-
-