public final class GeoSPARQLDatatypeHandler extends Object implements DatatypeHandler
Constructor and Description |
---|
GeoSPARQLDatatypeHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
isRecognizedDatatype(IRI datatypeUri)
Checks if the given datatype
IRI is recognized by this `DatatypeHandler`. |
String |
key()
A unique key for this datatype handler to identify it in the
|
boolean |
verifyDatatype(String theValue,
Datatype theDatatype)
Verifies that the datatype is valid, including a check on the
structure of the literal value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
normalizeDatatype
public boolean isRecognizedDatatype(@Nonnull IRI datatypeUri)
IRI
is recognized by this `DatatypeHandler`.isRecognizedDatatype
in interface DatatypeHandler
datatypeUri
- The datatype URI to check.DatatypeHandler.verifyDatatype(String, Datatype)
and
DatatypeHandler.normalizeDatatype(String, Datatype)
.public boolean verifyDatatype(@Nonnull String theValue, @Nonnull Datatype theDatatype)
This method must only be called after verifying that
DatatypeHandler.isRecognizedDatatype(IRI)
returns true for the given datatype
URI.
verifyDatatype
in interface DatatypeHandler
theValue
- Literal value matching the given datatype URI.theDatatype
- A datatype that matched with DatatypeHandler.isRecognizedDatatype(IRI)
InvalidLiteral
exception if the datatype is not recognizedpublic String key()
key
in interface DatatypeHandler
Copyright © 2010-2016 Stardog Union. All Rights Reserved.