public final class RDFDatatypesHandler extends Object implements DatatypeHandler
Modifier and Type | Field and Description |
---|---|
static String |
KEY
Identifier for datatypes defined in the
RDF vocabulary. |
Constructor and Description |
---|
RDFDatatypesHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
isRecognizedDatatype(IRI theURI)
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 static final String KEY
RDF
vocabulary.public boolean isRecognizedDatatype(@Nonnull IRI theURI)
IRI
is recognized by this `DatatypeHandler`.isRecognizedDatatype
in interface DatatypeHandler
theURI
- The datatype URI to check.DatatypeHandler.verifyDatatype(String, Datatype)
and
DatatypeHandler.normalizeDatatype(String, Datatype)
.public String key()
key
in interface DatatypeHandler
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 recognizedCopyright © 2010-2016 Stardog Union. All Rights Reserved.