Class TriplePatternImpl

java.lang.Object
se.liu.ida.hefquin.base.query.impl.TriplePatternImpl
All Implemented Interfaces:
Query, SPARQLGraphPattern, TriplePattern

public class TriplePatternImpl extends Object implements TriplePattern
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.apache.jena.graph.Triple
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    TriplePatternImpl(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
     
    TriplePatternImpl(org.apache.jena.graph.Triple jenaObject)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.jena.graph.Triple
    Returns a representation of this triple pattern as an object of the class Triple of the Jena API.
    boolean
     
    int
     
    int
    Returns the number of distinct variables in this triple pattern.
    Returns a string representation of the triple

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • jenaObj

      protected final org.apache.jena.graph.Triple jenaObj
  • Constructor Details

    • TriplePatternImpl

      public TriplePatternImpl(org.apache.jena.graph.Triple jenaObject)
    • TriplePatternImpl

      public TriplePatternImpl(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
  • Method Details

    • asJenaTriple

      public org.apache.jena.graph.Triple asJenaTriple()
      Description copied from interface: TriplePattern
      Returns a representation of this triple pattern as an object of the class Triple of the Jena API.
      Specified by:
      asJenaTriple in interface TriplePattern
    • numberOfVars

      public int numberOfVars()
      Description copied from interface: TriplePattern
      Returns the number of distinct variables in this triple pattern.
      Specified by:
      numberOfVars in interface TriplePattern
    • toString

      public String toString()
      Description copied from interface: TriplePattern
      Returns a string representation of the triple
      Specified by:
      toString in interface TriplePattern
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object