public class EpochExtension<V extends BigdataValue> extends Object implements IExtension<V>
IExtension implements inlining for literals
that represent time in milliseconds since the epoch. The milliseconds are
encoded as an inline long.| Modifier and Type | Field and Description |
|---|---|
static org.openrdf.model.URI |
EPOCH
The datatype URI for the epoch extension.
|
| Constructor and Description |
|---|
EpochExtension(IDatatypeURIResolver resolver) |
| Modifier and Type | Method and Description |
|---|---|
V |
asValue(LiteralExtensionIV iv,
BigdataValueFactory vf)
Use the string value of the
LiteralExtensionIV (which defers to the
string value of the native type) to create a literal with the epoch
datatype. |
LiteralExtensionIV |
createIV(org.openrdf.model.Value value)
Attempts to convert the supplied value into an epoch representation.
|
Set<BigdataURI> |
getDatatypes()
Return the fully resolved datatype(s) handled by this interface in the
form of a
BigdataURI with the TermId already set. |
public static final transient org.openrdf.model.URI EPOCH
public EpochExtension(IDatatypeURIResolver resolver)
public Set<BigdataURI> getDatatypes()
IExtensionBigdataURI with the TermId already set.getDatatypes in interface IExtension<V extends BigdataValue>public LiteralExtensionIV createIV(org.openrdf.model.Value value)
XSDLongIV, and returns an LiteralExtensionIV to wrap the native
type.createIV in interface IExtension<V extends BigdataValue>value - The RDF ValueIV -or- null if the
Value can not be inlined using this IExtension.public V asValue(LiteralExtensionIV iv, BigdataValueFactory vf)
LiteralExtensionIV (which defers to the
string value of the native type) to create a literal with the epoch
datatype.asValue in interface IExtension<V extends BigdataValue>iv - The extension IVvf - The bigdata value factoryValueCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.