java.lang.Object
org.apache.jena.sparql.util.graph.GNode

public class GNode extends Object
A GNode pair of (graph, node in graph) with an abstracted "findable" operation so it work for graphs and collections of triples.

See GraphList.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final Findable
     
    final org.apache.jena.graph.Node
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    GNode(Collection<org.apache.jena.graph.Triple> triples, org.apache.jena.graph.Node node)
     
    GNode(org.apache.jena.graph.Graph graph, org.apache.jena.graph.Node node)
     
    GNode(BasicPattern triples, org.apache.jena.graph.Node node)
     
    GNode(GNode other, org.apache.jena.graph.Node node)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static GNode
    create(org.apache.jena.graph.Graph graph, org.apache.jena.graph.Node node)
     
    static GNode
    object(org.apache.jena.graph.Graph graph, org.apache.jena.graph.Triple triple)
     
    static GNode
    predicate(org.apache.jena.graph.Graph graph, org.apache.jena.graph.Triple triple)
     
    static GNode
    subject(org.apache.jena.graph.Graph graph, org.apache.jena.graph.Triple triple)
     
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • findable

      public final Findable findable
    • node

      public final org.apache.jena.graph.Node node
  • Constructor Details

    • GNode

      public GNode(org.apache.jena.graph.Graph graph, org.apache.jena.graph.Node node)
    • GNode

      public GNode(BasicPattern triples, org.apache.jena.graph.Node node)
    • GNode

      public GNode(Collection<org.apache.jena.graph.Triple> triples, org.apache.jena.graph.Node node)
    • GNode

      public GNode(GNode other, org.apache.jena.graph.Node node)
  • Method Details

    • create

      public static GNode create(org.apache.jena.graph.Graph graph, org.apache.jena.graph.Node node)
    • subject

      public static GNode subject(org.apache.jena.graph.Graph graph, org.apache.jena.graph.Triple triple)
    • predicate

      public static GNode predicate(org.apache.jena.graph.Graph graph, org.apache.jena.graph.Triple triple)
    • object

      public static GNode object(org.apache.jena.graph.Graph graph, org.apache.jena.graph.Triple triple)
    • toString

      public String toString()
      Overrides:
      toString in class Object