public interface IExtension<V extends BigdataValue>
IExtension
s are responsible for round-tripping between an RDF
Value
and an LiteralExtensionIV
for a particular datatype.
Because of how LiteralExtensionIV
s 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 Value
IV
-or- null
if the
Value
can not be inlined using this IExtension
.V asValue(LiteralExtensionIV iv, BigdataValueFactory vf)
LiteralExtensionIV
.iv
- The extension IV
vf
- The bigdata value factoryValue
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.