Class WktLiteral
- java.lang.Object
-
- org.apache.jena.datatypes.BaseDatatype
-
- fr.mines_stetienne.ci.sparql_generate.utils.WktLiteral
-
- All Implemented Interfaces:
RDFDatatype
public class WktLiteral extends BaseDatatype
WktLiteral datatype A custom RDFDatatype to implement WKT literal- Since:
- 2018-09-04
- Author:
- El Mehdi Khalfi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.jena.datatypes.BaseDatatype
BaseDatatype.TypedValue
-
-
Field Summary
Fields Modifier and Type Field Description static String
CRS84
static String
TypeURI
static RDFDatatype
wktLiteralType
-
Fields inherited from class org.apache.jena.datatypes.BaseDatatype
uri
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEqual(LiteralLabel value1, LiteralLabel value2)
Compares two instances of values of the given datatype.Object
parse(String lexicalForm)
Parse a lexical form of this datatype to a valueString
unparse(Object value)
Convert a value of this datatype out to lexical form.-
Methods inherited from class org.apache.jena.datatypes.BaseDatatype
cannonicalise, extendedTypeDefinition, getHashCode, getJavaClass, getURI, isEqualByTerm, isEqualPlain, isValid, isValidLiteral, isValidValue, langTagCompatible, normalizeSubType, toString
-
-
-
-
Field Detail
-
TypeURI
public static final String TypeURI
- See Also:
- Constant Field Values
-
CRS84
public static final String CRS84
- See Also:
- Constant Field Values
-
wktLiteralType
public static final RDFDatatype wktLiteralType
-
-
Method Detail
-
unparse
public String unparse(Object value)
Convert a value of this datatype out to lexical form.- Specified by:
unparse
in interfaceRDFDatatype
- Overrides:
unparse
in classBaseDatatype
-
parse
public Object parse(String lexicalForm)
Parse a lexical form of this datatype to a value- Specified by:
parse
in interfaceRDFDatatype
- Overrides:
parse
in classBaseDatatype
-
isEqual
public boolean isEqual(LiteralLabel value1, 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:
isEqual
in interfaceRDFDatatype
- Overrides:
isEqual
in classBaseDatatype
- Parameters:
value1
- First value to comparevalue2
- Second value to compare- Returns:
- Value to determine whether both are equal.
-
-