public class LexiconConfiguration<V extends BigdataValue> extends Object implements ILexiconConfiguration<V>
Constructor and Description |
---|
LexiconConfiguration(int blobsThreshold,
boolean inlineXSDDatatypeLiterals,
boolean inlineTextLiterals,
int maxInlineTextLength,
boolean inlineBNodes,
boolean inlineDateTimes,
TimeZone inlineDateTimesTimeZone,
boolean rejectInvalidXSDValues,
boolean enableRawRecordsSupport,
IExtensionFactory xFactory,
Vocabulary vocab,
BigdataValueFactory valueFactory,
IInlineURIFactory uriFactory,
boolean geoSpatial,
GeoSpatialConfig geoSpatialConfig) |
Modifier and Type | Method and Description |
---|---|
V |
asValue(LiteralExtensionIV<?> iv)
Create an RDF value from an
AbstractInlineExtensionIV . |
V |
asValueFromVocab(IV<?,?> iv)
|
IV |
createInlineIV(org.openrdf.model.Value value)
Create an inline
IV for the supplied RDF value if inlining is
supported for the supplied RDF value. |
int |
getBlobsThreshold()
Return the threshold at which a literal would be stored in the
LexiconKeyOrder.BLOBS index. |
GeoSpatialConfig |
getGeoSpatialConfig()
Return the geospatial datatype configuration.
|
TimeZone |
getInlineDateTimesTimeZone()
Return the default time zone to be used for inlining.
|
String |
getInlineURILocalNameFromDelegate(org.openrdf.model.URI namespace,
AbstractLiteralIV<BigdataLiteral,?> delegate)
Inflate the localName portion of an inline URI using its storage delegate.
|
int |
getMaxInlineStringLength()
Return the maximum length of a Unicode string which may be inlined into
the statement indices.
|
Iterable<IMathOpHandler> |
getTypeHandlers()
Get iterator over registered type handlers.
|
BigdataValueFactory |
getValueFactory()
Return the value factory for the lexicon.
|
void |
initExtensions(IDatatypeURIResolver resolver)
Initialize the extensions, which need to resolve their datatype URIs into
term ids.
|
boolean |
isBlobsDisabled()
Return true iff the BLOBS index has been disabled.
|
boolean |
isGeoSpatial()
Return
true if GeoSpatial support is enabled. |
boolean |
isInlineDatatypeToTextIndex(org.openrdf.model.URI dt)
Should the specified datatype be included in the text index (even though
it is an inline datatype, for example IPv4).
|
boolean |
isInlineDateTimes()
Return
true if xsd:datetime literals are being inlined into
the statement indices. |
boolean |
isInlineLiterals()
Return
true if datatype literals are being inlined into
the statement indices. |
boolean |
isInlineTextLiterals() |
String |
toString() |
public LexiconConfiguration(int blobsThreshold, boolean inlineXSDDatatypeLiterals, boolean inlineTextLiterals, int maxInlineTextLength, boolean inlineBNodes, boolean inlineDateTimes, TimeZone inlineDateTimesTimeZone, boolean rejectInvalidXSDValues, boolean enableRawRecordsSupport, IExtensionFactory xFactory, Vocabulary vocab, BigdataValueFactory valueFactory, IInlineURIFactory uriFactory, boolean geoSpatial, GeoSpatialConfig geoSpatialConfig)
public final BigdataValueFactory getValueFactory()
ILexiconConfiguration
getValueFactory
in interface ILexiconConfiguration<V extends BigdataValue>
public int getMaxInlineStringLength()
ILexiconConfiguration
XSDStringExtension
), local names of URI
s,
etc.getMaxInlineStringLength
in interface ILexiconConfiguration<V extends BigdataValue>
AbstractTripleStore.Options#MAX_INLINE_TEXT_LENGTH
public boolean isInlineTextLiterals()
isInlineTextLiterals
in interface ILexiconConfiguration<V extends BigdataValue>
AbstractTripleStore.Options#INLINE_TEXT_LITERALS
public boolean isInlineLiterals()
ILexiconConfiguration
true
if datatype literals are being inlined into
the statement indices.isInlineLiterals
in interface ILexiconConfiguration<V extends BigdataValue>
public boolean isGeoSpatial()
ILexiconConfiguration
true
if GeoSpatial support is enabled.isGeoSpatial
in interface ILexiconConfiguration<V extends BigdataValue>
public GeoSpatialConfig getGeoSpatialConfig()
ILexiconConfiguration
getGeoSpatialConfig
in interface ILexiconConfiguration<V extends BigdataValue>
public boolean isInlineDateTimes()
ILexiconConfiguration
true
if xsd:datetime literals are being inlined into
the statement indices.isInlineDateTimes
in interface ILexiconConfiguration<V extends BigdataValue>
public TimeZone getInlineDateTimesTimeZone()
ILexiconConfiguration
getInlineDateTimesTimeZone
in interface ILexiconConfiguration<V extends BigdataValue>
public int getBlobsThreshold()
ILexiconConfiguration
LexiconKeyOrder.BLOBS
index.getBlobsThreshold
in interface ILexiconConfiguration<V extends BigdataValue>
AbstractTripleStore.Options#BLOBS_THRESHOLD
public boolean isBlobsDisabled()
ILexiconConfiguration
isBlobsDisabled
in interface ILexiconConfiguration<V extends BigdataValue>
public boolean isInlineDatatypeToTextIndex(org.openrdf.model.URI dt)
ILexiconConfiguration
isInlineDatatypeToTextIndex
in interface ILexiconConfiguration<V extends BigdataValue>
public void initExtensions(IDatatypeURIResolver resolver)
ILexiconConfiguration
initExtensions
in interface ILexiconConfiguration<V extends BigdataValue>
public V asValue(LiteralExtensionIV<?> iv)
ILexiconConfiguration
AbstractInlineExtensionIV
. The
"extension" IV
MUST be registered with the Vocabulary
.
For LiteralExtensionIV
, this through an internal catalog of
IExtension
s to find one that knows how to handle the extension
datatype from the supplied LiteralExtensionIV
. This is the
historical use case.
asValue
in interface ILexiconConfiguration<V extends BigdataValue>
iv
- the extension IVValue
public V asValueFromVocab(IV<?,?> iv)
ILexiconConfiguration
asValueFromVocab
in interface ILexiconConfiguration<V extends BigdataValue>
iv
- The IV
.Value
-or- null
if the IV
was
not declared in the Vocabulary
.public IV createInlineIV(org.openrdf.model.Value value)
ILexiconConfiguration
IV
for the supplied RDF value if inlining is
supported for the supplied RDF value.
Note: If the supplied RDF value is a BigdataValue
then the
IV
will be set as a side-effect and will be available from
BigdataValue.getIV()
.
createInlineIV
in interface ILexiconConfiguration<V extends BigdataValue>
value
- The RDF valueIV
-or- null
if the Value
can not be represented by an IV
.public String getInlineURILocalNameFromDelegate(org.openrdf.model.URI namespace, AbstractLiteralIV<BigdataLiteral,?> delegate)
getInlineURILocalNameFromDelegate
in interface ILexiconConfiguration<V extends BigdataValue>
namespace
- the uris's prefixdelegate
- the storage delegatepublic Iterable<IMathOpHandler> getTypeHandlers()
ILexiconConfiguration
getTypeHandlers
in interface ILexiconConfiguration<V extends BigdataValue>
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.