Class SimplePath

java.lang.Object
org.aksw.jenax.sparql.path.SimplePath
All Implemented Interfaces:
Comparable<SimplePath>

@Deprecated public class SimplePath extends Object implements Comparable<SimplePath>
Deprecated.
Use PathPP from the datapath module - it has all the java.nio.Path methods The static method s though need porting
  • Constructor Details

    • SimplePath

      public SimplePath()
      Deprecated.
    • SimplePath

      public SimplePath(List<org.apache.jena.sparql.path.P_Path0> steps)
      Deprecated.
  • Method Details

    • getSteps

      public List<org.apache.jena.sparql.path.P_Path0> getSteps()
      Deprecated.
    • seperateLastStep

      public static Map.Entry<SimplePath,org.apache.jena.sparql.path.P_Path0> seperateLastStep(SimplePath path)
      Deprecated.
      Returns an entry with the last step separated from the rest of the steps Useful for compatibility with jgrapht's path validator which uses the same model. In case of empty path, the result is (empty path, null)
      Parameters:
      path -
      Returns:
    • fromPropertyPath

      public static SimplePath fromPropertyPath(org.apache.jena.sparql.path.Path path)
      Deprecated.
    • toPropertyPath

      public static org.apache.jena.sparql.path.Path toPropertyPath(SimplePath path)
      Deprecated.
    • toPropertyPath

      public static org.apache.jena.sparql.path.Path toPropertyPath(List<org.apache.jena.sparql.path.P_Path0> steps)
      Deprecated.
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Deprecated.
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • isEmpty

      public boolean isEmpty()
      Deprecated.
    • lastStep

      public org.apache.jena.sparql.path.P_Path0 lastStep()
      Deprecated.
    • parentPath

      public SimplePath parentPath()
      Deprecated.
    • pathToElements

      public static List<org.apache.jena.sparql.syntax.Element> pathToElements(SimplePath path, org.apache.jena.sparql.core.Var start, org.apache.jena.sparql.core.Var end, org.aksw.commons.collections.generator.Generator generator)
      Deprecated.
    • pathToTriples

      public static List<org.apache.jena.graph.Triple> pathToTriples(SimplePath path, org.apache.jena.sparql.core.Var start, org.apache.jena.sparql.core.Var end, org.aksw.commons.collections.generator.Generator<org.apache.jena.sparql.core.Var> generator)
      Deprecated.
    • toPathString

      public String toPathString()
      Deprecated.
    • compareTo

      public int compareTo(SimplePath o)
      Deprecated.
      Specified by:
      compareTo in interface Comparable<SimplePath>
    • mentionedNodes

      public static Set<org.apache.jena.graph.Node> mentionedNodes(SimplePath sp)
      Deprecated.