Class RDFDatatypePPath

java.lang.Object
org.apache.jena.datatypes.BaseDatatype
org.aksw.jenax.path.datatype.RDFDatatypePPath
All Implemented Interfaces:
org.apache.jena.datatypes.RDFDatatype

public class RDFDatatypePPath extends org.apache.jena.datatypes.BaseDatatype
A datatype for storing SPARQL property paths in RDF literals.
Author:
Claus Stadler
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.jena.datatypes.BaseDatatype

    org.apache.jena.datatypes.BaseDatatype.TypedValue
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final RDFDatatypePPath
     
    static final String
     

    Fields inherited from class org.apache.jena.datatypes.BaseDatatype

    uri
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.jena.sparql.path.Path
    extractPath(org.apache.jena.graph.Node node)
    Extract a path from a given node..
     
    org.apache.jena.sparql.path.Path
    parse(String lexicalForm)
    Parse a lexical form of this datatype to a value
    unparse(Object value)
    Convert a value of this datatype out to lexical form.

    Methods inherited from class org.apache.jena.datatypes.BaseDatatype

    cannonicalise, equals, extendedTypeDefinition, getHashCode, getURI, hashCode, isEqual, isEqualByTerm, isEqualPlain, isValid, isValidLiteral, isValidValue, langTagCompatible, normalizeSubType, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • RDFDatatypePPath

      public RDFDatatypePPath()
    • RDFDatatypePPath

      public RDFDatatypePPath(String uri)
  • Method Details

    • getJavaClass

      public Class<?> getJavaClass()
      Specified by:
      getJavaClass in interface org.apache.jena.datatypes.RDFDatatype
      Overrides:
      getJavaClass in class org.apache.jena.datatypes.BaseDatatype
    • unparse

      public String unparse(Object value)
      Convert a value of this datatype out to lexical form.
      Specified by:
      unparse in interface org.apache.jena.datatypes.RDFDatatype
      Overrides:
      unparse in class org.apache.jena.datatypes.BaseDatatype
    • parse

      public org.apache.jena.sparql.path.Path parse(String lexicalForm) throws org.apache.jena.datatypes.DatatypeFormatException
      Parse a lexical form of this datatype to a value
      Specified by:
      parse in interface org.apache.jena.datatypes.RDFDatatype
      Overrides:
      parse in class org.apache.jena.datatypes.BaseDatatype
      Throws:
      org.apache.jena.datatypes.DatatypeFormatException - if the lexical form is not legal
    • extractPath

      public static org.apache.jena.sparql.path.Path extractPath(org.apache.jena.graph.Node node)
      Extract a path from a given node..
      Returns:
      The extracted path or null if none could be extracted.