Class DatasetGraphQuads

java.lang.Object
org.apache.jena.sparql.core.DatasetGraphBase
org.apache.jena.sparql.core.DatasetGraphQuads
All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable, DatasetGraph, Transactional

public abstract class DatasetGraphQuads extends DatasetGraphBase
A DatasetGraph base class for pure quad-centric storage.
  • Constructor Details

    • DatasetGraphQuads

      public DatasetGraphQuads()
  • Method Details

    • listGraphNodes

      public Iterator<org.apache.jena.graph.Node> listGraphNodes()
      Description copied from interface: DatasetGraph
      Iterate over all names of named graphs
    • removeGraph

      public void removeGraph(org.apache.jena.graph.Node graphName)
      Description copied from interface: DatasetGraph
      Remove all data associated with the named graph. This will include prefixes associated with the graph.
      Specified by:
      removeGraph in interface DatasetGraph
      Specified by:
      removeGraph in class DatasetGraphBase
    • addGraph

      public void addGraph(org.apache.jena.graph.Node graphName, org.apache.jena.graph.Graph graph)
      Description copied from interface: DatasetGraph
      Add the given graph to the dataset. Replaces any existing data for the named graph; to add data, get the graph and add triples to it, or add quads to the dataset. Do not assume that the same Java object is returned by DatasetGraph.getGraph(org.apache.jena.graph.Node)
      Specified by:
      addGraph in interface DatasetGraph
      Specified by:
      addGraph in class DatasetGraphBase
    • find

      public abstract Iterator<Quad> find(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
      Description copied from interface: DatasetGraph
      Find matching quads in the dataset (including default graph) - may include wildcards, Node.ANY or null
      See Also:
      • Graph.find(Node,Node,Node)
    • findNG

      public abstract Iterator<Quad> findNG(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
      Description copied from interface: DatasetGraph
      Find matching quads in the dataset in named graphs only - may include wildcards, Node.ANY or null
      See Also:
      • Graph.find(Node,Node,Node)
    • add

      public abstract void add(Quad quad)
      Description copied from interface: DatasetGraph
      Add a quad
      Specified by:
      add in interface DatasetGraph
      Overrides:
      add in class DatasetGraphBase
    • delete

      public abstract void delete(Quad quad)
      Description copied from interface: DatasetGraph
      Delete a quad
      Specified by:
      delete in interface DatasetGraph
      Overrides:
      delete in class DatasetGraphBase