Class RelationGeneratorBase

java.lang.Object
org.aksw.jenax.path.relgen.RelationGeneratorBase
Direct Known Subclasses:
RelationGeneratorSimple

public abstract class RelationGeneratorBase extends Object
  • Field Details

    • pastRelations

      protected List<Fragment> pastRelations
      Relations that have been traversed by the path - does not include the current relation
    • relation

      protected Fragment relation
      The current relation
    • contextHash

      protected com.google.common.hash.HashCode contextHash
    • contextHashStr

      protected String contextHashStr
      Cached String version of the hash
    • conditions

      protected List<org.apache.jena.sparql.expr.Expr> conditions
      Conditions imposed the current relation based on the seen path segments
    • relationStartAbsPath

      protected PathPE relationStartAbsPath
      The absolute path at which the relation was requested Once it covers all columns of the relation it is used to compute the next context hash
    • relPath

      protected PathPE relPath
      The relative path of segments seen for the current relation Connects to relationStartPath
  • Constructor Details

    • RelationGeneratorBase

      public RelationGeneratorBase()
  • Method Details

    • nextInstance

      protected abstract Fragment nextInstance()
      Yield the next relation to traverse
      Parameters:
      path -
      index -
      Returns:
    • process

      public Fragment process(PathPE path)
    • reset

      protected void reset()
    • ensureInit

      public void ensureInit()
    • process

      public Fragment process(UnaryXExpr segment)
    • getCurrentVar

      public org.apache.jena.sparql.core.Var getCurrentVar()
    • getPastRelations

      public List<Fragment> getPastRelations()
    • getCurrentConcept

      public Fragment1 getCurrentConcept()
    • assemble

      public org.apache.jena.sparql.syntax.Element assemble()
      Assemble the complete element
    • updateHash

      protected void updateHash()
    • setHashCode

      protected void setHashCode(com.google.common.hash.HashCode hashCode)
    • encodeHashCode

      protected String encodeHashCode(com.google.common.hash.HashCode hashCode)
    • computeNextHash

      protected com.google.common.hash.HashCode computeNextHash(com.google.common.hash.HashCode currentHash, PathPE relationStartAbsPath, PathPE relPath)