Class WktLiteral
java.lang.Object
org.apache.jena.datatypes.BaseDatatype
fr.mines_stetienne.ci.sparql_generate.utils.WktLiteral
- All Implemented Interfaces:
org.apache.jena.datatypes.RDFDatatype
public class WktLiteral
extends org.apache.jena.datatypes.BaseDatatype
WktLiteral datatype
A custom RDFDatatype to implement WKT literal
- Since:
- 2018-09-04
- Author:
- El Mehdi Khalfi invalid input: '<'el-mehdi.khalfi at emse.fr>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.jena.datatypes.BaseDatatype
org.apache.jena.datatypes.BaseDatatype.TypedValue -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final org.apache.jena.datatypes.RDFDatatypeFields inherited from class org.apache.jena.datatypes.BaseDatatype
uri -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEqual(org.apache.jena.graph.impl.LiteralLabel value1, org.apache.jena.graph.impl.LiteralLabel value2) Compares two instances of values of the given datatype.Parse 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, getJavaClass, getURI, hashCode, isEqualByTerm, isEqualPlain, isValid, isValidLiteral, isValidValue, langTagCompatible, normalizeSubType, toString
-
Field Details
-
TypeURI
- See Also:
-
CRS84
- See Also:
-
wktLiteralType
public static final org.apache.jena.datatypes.RDFDatatype wktLiteralType
-
-
Method Details
-
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
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
-
isEqual
public boolean isEqual(org.apache.jena.graph.impl.LiteralLabel value1, org.apache.jena.graph.impl.LiteralLabel value2) Compares two instances of values of the given datatype. This does not allow rationals to be compared to other number formats, Lang tag is not significant.- Specified by:
isEqualin interfaceorg.apache.jena.datatypes.RDFDatatype- Overrides:
isEqualin classorg.apache.jena.datatypes.BaseDatatype- Parameters:
value1- First value to comparevalue2- Second value to compare- Returns:
- Value to determine whether both are equal.
-