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.
  • Constructor Details

    • SafeGraph

      public SafeGraph(Graph base)
      Wrap a graph to hide generalized triples
  • Method Details

    • 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 interface Graph
      Overrides:
      find in class WrappedGraph
      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 interface Graph
      Overrides:
      find in class WrappedGraph
      Returns:
      an iterator of triples in this graph matching the pattern.
    • getRawGraph

      public Graph getRawGraph()
      Return the unfiltered version of the graph