Class PathOpsPE

java.lang.Object
org.aksw.jenax.path.core.PathOpsPE
All Implemented Interfaces:
org.aksw.commons.path.core.PathOps<UnaryXExpr,PathPE>

public class PathOpsPE extends Object implements org.aksw.commons.path.core.PathOps<UnaryXExpr,PathPE>
Implementation of PathOps which allows for using the path machinery By convention, the single variable used in constraint expressions should be "?x". Allows paths of the form / ?x IN (a b c) / REGEX(?x, "foo") / ?x = TRUE / ...
Author:
raven
  • Field Details

    • VAR_X

      public static final org.apache.jena.sparql.core.Var VAR_X
    • EXPR_X

      public static final org.apache.jena.sparql.expr.ExprVar EXPR_X
    • PARENT

      public static final UnaryXExpr PARENT
    • SELF

      public static final UnaryXExpr SELF
  • Constructor Details

    • PathOpsPE

      public PathOpsPE()
  • Method Details

    • get

      public static PathOpsPE get()
    • newRelativePath

      public static PathPE newRelativePath()
    • upcast

      public PathPE upcast(org.aksw.commons.path.core.Path<UnaryXExpr> path)
      Specified by:
      upcast in interface org.aksw.commons.path.core.PathOps<UnaryXExpr,PathPE>
    • getBasePathSegments

      public List<UnaryXExpr> getBasePathSegments()
      Specified by:
      getBasePathSegments in interface org.aksw.commons.path.core.PathOps<UnaryXExpr,PathPE>
    • getComparator

      public Comparator<UnaryXExpr> getComparator()
      Specified by:
      getComparator in interface org.aksw.commons.path.core.PathOps<UnaryXExpr,PathPE>
    • newPath

      public PathPE newPath(boolean isAbsolute, List<UnaryXExpr> segments)
      Specified by:
      newPath in interface org.aksw.commons.path.core.PathOps<UnaryXExpr,PathPE>
    • getSelfToken

      public UnaryXExpr getSelfToken()
      Specified by:
      getSelfToken in interface org.aksw.commons.path.core.PathOps<UnaryXExpr,PathPE>
    • getParentToken

      public UnaryXExpr getParentToken()
      Specified by:
      getParentToken in interface org.aksw.commons.path.core.PathOps<UnaryXExpr,PathPE>
    • toStringRaw

      public String toStringRaw(Object path)
      Specified by:
      toStringRaw in interface org.aksw.commons.path.core.PathOps<UnaryXExpr,PathPE>
    • toString

      public String toString(PathPE path)
      Specified by:
      toString in interface org.aksw.commons.path.core.PathOps<UnaryXExpr,PathPE>
    • fromString

      public PathPE fromString(String str)
      Specified by:
      fromString in interface org.aksw.commons.path.core.PathOps<UnaryXExpr,PathPE>