Class GraphView

java.lang.Object
org.apache.jena.graph.impl.GraphBase
org.apache.jena.sparql.core.GraphView
All Implemented Interfaces:
org.apache.jena.atlas.lib.Sync, org.apache.jena.graph.Graph, org.apache.jena.graph.impl.GraphWithPerform, NamedGraph

public class GraphView extends org.apache.jena.graph.impl.GraphBase implements NamedGraph, org.apache.jena.atlas.lib.Sync
Implement a Graph as a view of the DatasetGraph. It maps graph operations to quad operations. GraphUnionRead provides a union graph that does not assume quads, but loops on graphs.
See Also:
  • Field Summary

    Fields inherited from class org.apache.jena.graph.impl.GraphBase

    TOSTRING_TRIPLE_BASE, TOSTRING_TRIPLE_LIMIT

    Fields inherited from interface org.apache.jena.graph.Graph

    emptyGraph
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    static GraphView
     
    static GraphView
    createNamedGraph(DatasetGraph dsg, org.apache.jena.graph.Node graphIRI)
     
    static GraphView
     
    org.apache.jena.graph.Capabilities
     
    Return the DatasetGraph we are viewing.
    org.apache.jena.graph.Node
    Return the graph name for this graph in the dataset it is a view of.
    org.apache.jena.graph.TransactionHandler
     
    void
    performAdd(org.apache.jena.graph.Triple t)
     
    void
    performDelete(org.apache.jena.graph.Triple t)
     
    void
    remove(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
     
    void
     

    Methods inherited from class org.apache.jena.graph.impl.GraphBase

    add, close, contains, contains, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getEventManager, getPrefixMapping, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, size, toString, toString

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.jena.graph.Graph

    add, add, close, contains, contains, delete, delete, dependsOn, find, find, find, getEventManager, getPrefixMapping, isClosed, isEmpty, isIsomorphicWith, size, sizeLong, stream, stream
  • Method Details

    • createDefaultGraph

      public static GraphView createDefaultGraph(DatasetGraph dsg)
    • createNamedGraph

      public static GraphView createNamedGraph(DatasetGraph dsg, org.apache.jena.graph.Node graphIRI)
    • createUnionGraph

      public static GraphView createUnionGraph(DatasetGraph dsg)
    • getGraphName

      public org.apache.jena.graph.Node getGraphName()
      Return the graph name for this graph in the dataset it is a view of. Returns null for the default graph.
      Specified by:
      getGraphName in interface NamedGraph
    • getDataset

      public DatasetGraph getDataset()
      Return the DatasetGraph we are viewing.
    • performAdd

      public void performAdd(org.apache.jena.graph.Triple t)
      Specified by:
      performAdd in interface org.apache.jena.graph.impl.GraphWithPerform
      Overrides:
      performAdd in class org.apache.jena.graph.impl.GraphBase
    • performDelete

      public void performDelete(org.apache.jena.graph.Triple t)
      Specified by:
      performDelete in interface org.apache.jena.graph.impl.GraphWithPerform
      Overrides:
      performDelete in class org.apache.jena.graph.impl.GraphBase
    • remove

      public void remove(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
      Specified by:
      remove in interface org.apache.jena.graph.Graph
      Overrides:
      remove in class org.apache.jena.graph.impl.GraphBase
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.jena.graph.Graph
      Overrides:
      clear in class org.apache.jena.graph.impl.GraphBase
    • sync

      public void sync()
      Specified by:
      sync in interface org.apache.jena.atlas.lib.Sync
    • getTransactionHandler

      public org.apache.jena.graph.TransactionHandler getTransactionHandler()
      Specified by:
      getTransactionHandler in interface org.apache.jena.graph.Graph
      Overrides:
      getTransactionHandler in class org.apache.jena.graph.impl.GraphBase
    • getCapabilities

      public org.apache.jena.graph.Capabilities getCapabilities()
      Specified by:
      getCapabilities in interface org.apache.jena.graph.Graph
      Overrides:
      getCapabilities in class org.apache.jena.graph.impl.GraphBase