Class DatasetGraphReadOnly

All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable, org.apache.jena.atlas.lib.Sync, DatasetGraph, Transactional
Direct Known Subclasses:
DatasetGraphFilteredView, DynamicDatasets.DynamicDatasetGraph

public class DatasetGraphReadOnly extends DatasetGraphWrapper
Read-only view of a DatasetGraph. Assumes the dataset underneath isn't changing.
  • Constructor Details

  • Method Details

    • getDefaultGraph

      public org.apache.jena.graph.Graph getDefaultGraph()
      Description copied from interface: DatasetGraph
      Get the default graph as a Jena Graph
      Specified by:
      getDefaultGraph in interface DatasetGraph
      getDefaultGraph in class DatasetGraphWrapper
    • begin

      public void begin(ReadWrite mode)
      Description copied from interface: Transactional
      Start either a READ or WRITE transaction.
      Specified by:
      begin in interface Transactional
      begin in class DatasetGraphWrapper
    • getGraph

      public org.apache.jena.graph.Graph getGraph(org.apache.jena.graph.Node graphNode)
      Description copied from interface: DatasetGraph
      Get the graph named by graphNode : returns null when there is no such graph. NB Whether a dataset contains a graph if there are no triples is not defined - see the specific implementation. Some datasets are "open" - they have all graphs even if no triples.
      Specified by:
      getGraph in interface DatasetGraph
      getGraph in class DatasetGraphWrapper
    • close

      public void close()
      Description copied from interface: DatasetGraph
      Close the dataset
      Specified by:
      close in interface org.apache.jena.atlas.lib.Closeable
      Specified by:
      close in interface DatasetGraph
      close in class DatasetGraphWrapper