Class PathOpsNode

java.lang.Object
org.aksw.jenax.path.core.PathOpsNode
All Implemented Interfaces:
Serializable, org.aksw.commons.path.core.PathOps<org.apache.jena.graph.Node,PathNode>

public class PathOpsNode extends Object implements org.aksw.commons.path.core.PathOps<org.apache.jena.graph.Node,PathNode>, Serializable
Implementation of PathOps which allows for using the path machinery with jena Nodes.
Author:
raven
See Also:
  • Field Details

    • PARENT

      public static final org.apache.jena.graph.Node PARENT
    • SELF

      public static final org.apache.jena.graph.Node SELF
  • Constructor Details

    • PathOpsNode

      public PathOpsNode()
  • Method Details

    • get

      public static PathOpsNode get()
    • newRelativePath

      public static PathNode newRelativePath()
    • upcast

      public PathNode upcast(org.aksw.commons.path.core.Path<org.apache.jena.graph.Node> path)
      Specified by:
      upcast in interface org.aksw.commons.path.core.PathOps<org.apache.jena.graph.Node,PathNode>
    • getBasePathSegments

      public List<org.apache.jena.graph.Node> getBasePathSegments()
      Specified by:
      getBasePathSegments in interface org.aksw.commons.path.core.PathOps<org.apache.jena.graph.Node,PathNode>
    • getComparator

      public Comparator<org.apache.jena.graph.Node> getComparator()
      Specified by:
      getComparator in interface org.aksw.commons.path.core.PathOps<org.apache.jena.graph.Node,PathNode>
    • newPath

      public PathNode newPath(boolean isAbsolute, List<org.apache.jena.graph.Node> segments)
      Specified by:
      newPath in interface org.aksw.commons.path.core.PathOps<org.apache.jena.graph.Node,PathNode>
    • getSelfToken

      public org.apache.jena.graph.Node getSelfToken()
      Specified by:
      getSelfToken in interface org.aksw.commons.path.core.PathOps<org.apache.jena.graph.Node,PathNode>
    • getParentToken

      public org.apache.jena.graph.Node getParentToken()
      Specified by:
      getParentToken in interface org.aksw.commons.path.core.PathOps<org.apache.jena.graph.Node,PathNode>
    • toStringRaw

      public String toStringRaw(Object path)
      Specified by:
      toStringRaw in interface org.aksw.commons.path.core.PathOps<org.apache.jena.graph.Node,PathNode>
    • toString

      public String toString(PathNode path)
      Specified by:
      toString in interface org.aksw.commons.path.core.PathOps<org.apache.jena.graph.Node,PathNode>
    • fromString

      public PathNode fromString(String str)
      Specified by:
      fromString in interface org.aksw.commons.path.core.PathOps<org.apache.jena.graph.Node,PathNode>