Package org.aksw.jenax.path.datatype
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
FieldsFields inherited from class org.apache.jena.datatypes.BaseDatatype
uri -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.jena.sparql.path.PathextractPath(org.apache.jena.graph.Node node) Extract a path from a given node..Class<?>org.apache.jena.sparql.path.PathParse a lexical form of this datatype to a valueConvert 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
-
Field Details
-
IRI
- See Also:
-
INSTANCE
-
-
Constructor Details
-
RDFDatatypePPath
public RDFDatatypePPath() -
RDFDatatypePPath
-
-
Method Details
-
getJavaClass
- Specified by:
getJavaClassin interfaceorg.apache.jena.datatypes.RDFDatatype- Overrides:
getJavaClassin classorg.apache.jena.datatypes.BaseDatatype
-
unparse
Convert a value of this datatype out to lexical form.- Specified by:
unparsein interfaceorg.apache.jena.datatypes.RDFDatatype- Overrides:
unparsein classorg.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:
parsein interfaceorg.apache.jena.datatypes.RDFDatatype- Overrides:
parsein classorg.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.
-