Class PathPE

java.lang.Object
org.aksw.commons.path.core.PathBase<UnaryXExpr,PathPE>
org.aksw.jenax.path.core.PathPE
All Implemented Interfaces:
Serializable, Comparable<org.aksw.commons.path.core.Path<UnaryXExpr>>, Iterable<org.aksw.commons.path.core.Path<UnaryXExpr>>, org.aksw.commons.path.core.Path<UnaryXExpr>

public class PathPE extends org.aksw.commons.path.core.PathBase<UnaryXExpr,PathPE>
Dedicated path implementation for SPARQL predicate expressions (SPARQL expressions only having a single variable). Expressions should uniformly use the variable "?x".
Author:
raven
See Also:
  • Constructor Details

  • Method Details

    • resolve

      public PathPE resolve(org.apache.jena.rdf.model.Resource other)
    • resolve

      public PathPE resolve(org.apache.jena.graph.Node node)
    • resolveSegment

      public PathPE resolveSegment(String str)
      Resolves a single segment from str; default resolves can resolve a full path serialized as a string
    • resolve

      public PathPE resolve(org.apache.jena.sparql.expr.Expr expr)
    • resolveAll

      public PathPE resolveAll()
      Append an ?x = ?x step which matches all values at this segment
    • parse

      public static PathPE parse(String str)
    • newAbsolutePath

      public static PathPE newAbsolutePath(UnaryXExpr segment)
    • newAbsolutePath

      public static PathPE newAbsolutePath(UnaryXExpr... segments)
    • newAbsolutePath

      public static PathPE newAbsolutePath(List<UnaryXExpr> segments)
    • newRelativePath

      public static PathPE newRelativePath(UnaryXExpr segment)
    • newRelativePath

      public static PathPE newRelativePath(UnaryXExpr... segments)
    • newRelativePath

      public static PathPE newRelativePath(List<UnaryXExpr> segments)