Package org.aksw.jenax.path.relgen
Class RelationGeneratorBase
java.lang.Object
org.aksw.jenax.path.relgen.RelationGeneratorBase
- Direct Known Subclasses:
RelationGeneratorSimple
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<org.apache.jena.sparql.expr.Expr>Conditions imposed the current relation based on the seen path segmentsprotected com.google.common.hash.HashCodeprotected StringCached String version of the hashRelations that have been traversed by the path - does not include the current relationprotected FragmentThe current relationprotected PathPEThe absolute path at which the relation was requested Once it covers all columns of the relation it is used to compute the next context hashprotected PathPEThe relative path of segments seen for the current relation Connects to relationStartPath -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.sparql.syntax.Elementassemble()Assemble the complete elementprotected com.google.common.hash.HashCodecomputeNextHash(com.google.common.hash.HashCode currentHash, PathPE relationStartAbsPath, PathPE relPath) protected StringencodeHashCode(com.google.common.hash.HashCode hashCode) voidorg.apache.jena.sparql.core.Varprotected abstract FragmentYield the next relation to traverseprocess(UnaryXExpr segment) protected voidreset()protected voidsetHashCode(com.google.common.hash.HashCode hashCode) protected void
-
Field Details
-
pastRelations
Relations that have been traversed by the path - does not include the current relation -
relation
The current relation -
contextHash
protected com.google.common.hash.HashCode contextHash -
contextHashStr
Cached String version of the hash -
conditions
Conditions imposed the current relation based on the seen path segments -
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
The relative path of segments seen for the current relation Connects to relationStartPath
-
-
Constructor Details
-
RelationGeneratorBase
public RelationGeneratorBase()
-
-
Method Details
-
nextInstance
Yield the next relation to traverse- Parameters:
path-index-- Returns:
-
process
-
reset
protected void reset() -
ensureInit
public void ensureInit() -
process
-
getCurrentVar
public org.apache.jena.sparql.core.Var getCurrentVar() -
getPastRelations
-
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
-
computeNextHash
-