public interface IExtension<V extends BigdataValue>
IExtensions are responsible for round-tripping between an RDF
Value and an LiteralExtensionIV for a particular datatype.
Because of how LiteralExtensionIVs are encoded and decoded, the
IExtension will need to have on hand the TermId for its
datatype. This is accomplished via the IDatatypeURIResolver - the
IExtension will give the resolver the datatype URI it needs
resolved and the resolver will lookup (or create) the TermId. This
relies on the declaration of that URI as part of the
Vocabulary.| Modifier and Type | Method and Description |
|---|---|
V |
asValue(LiteralExtensionIV iv,
BigdataValueFactory vf)
Create an RDF value from an
LiteralExtensionIV. |
LiteralExtensionIV |
createIV(org.openrdf.model.Value value)
Create an
LiteralExtensionIV from an RDF value. |
Set<BigdataURI> |
getDatatypes()
Return the fully resolved datatype(s) handled by this interface in the
form of a
BigdataURI with the TermId already set. |
Set<BigdataURI> getDatatypes()
BigdataURI with the TermId already set.LiteralExtensionIV createIV(org.openrdf.model.Value value)
LiteralExtensionIV from an RDF value.value - The RDF ValueIV -or- null if the
Value can not be inlined using this IExtension.V asValue(LiteralExtensionIV iv, BigdataValueFactory vf)
LiteralExtensionIV.iv - The extension IVvf - The bigdata value factoryValueCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.