|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.rdf.internal.LexiconConfiguration<V>
public class LexiconConfiguration<V extends BigdataValue>
An object which describes which kinds of RDF Values are inlined into the statement indices and how other RDF Values are coded into the lexicon.
| Constructor Summary | |
|---|---|
LexiconConfiguration(boolean inlineXSDDatatypeLiterals,
boolean inlineTextLiterals,
int maxInlineTextLength,
boolean inlineBNodes,
boolean inlineDateTimes,
boolean rejectInvalidXSDValues,
IExtensionFactory xFactory,
Vocabulary vocab,
BigdataValueFactory valueFactory)
|
|
| Method Summary | |
|---|---|
V |
asValue(LiteralExtensionIV<?> iv)
Create an RDF value from an AbstractInlineExtensionIV. |
V |
asValueFromVocab(IV<?,?> iv)
Return the Value for that IV iff the IV is
declared in the Vocabulary. |
IV |
createInlineIV(Value value)
Create an inline IV for the supplied RDF value if inlining is
supported for the supplied RDF value. |
int |
getMaxInlineStringLength()
Return the maximum length of a Unicode string which may be inlined into the statement indices. |
BigdataValueFactory |
getValueFactory()
Return the value factory for the lexicon. |
void |
initExtensions(LexiconRelation lex)
Initialize the extensions, which need to resolve their datatype URIs into term ids. |
boolean |
isInlineTextLiterals()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LexiconConfiguration(boolean inlineXSDDatatypeLiterals,
boolean inlineTextLiterals,
int maxInlineTextLength,
boolean inlineBNodes,
boolean inlineDateTimes,
boolean rejectInvalidXSDValues,
IExtensionFactory xFactory,
Vocabulary vocab,
BigdataValueFactory valueFactory)
| Method Detail |
|---|
public final BigdataValueFactory getValueFactory()
ILexiconConfiguration
getValueFactory in interface ILexiconConfiguration<V extends BigdataValue>public int getMaxInlineStringLength()
XSDStringExtension), local names of URIs,
etc.
AbstractTripleStore.Options#MAX_INLINE_TEXT_LENGTHpublic boolean isInlineTextLiterals()
AbstractTripleStore.Options#INLINE_TEXT_LITERALSpublic String toString()
toString in class Objectpublic void initExtensions(LexiconRelation lex)
ILexiconConfiguration
initExtensions in interface ILexiconConfiguration<V extends BigdataValue>public V asValue(LiteralExtensionIV<?> iv)
ILexiconConfigurationAbstractInlineExtensionIV. The
"extension" IV MUST be registered with the Vocabulary.
For LiteralExtensionIV, this through an internal catalog of
IExtensions 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 IV
Valuepublic V asValueFromVocab(IV<?,?> iv)
ILexiconConfigurationValue for that IV iff the IV is
declared in the Vocabulary.
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(Value value)
ILexiconConfigurationIV 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 value
IV -or- null if the Value
can not be represented by an IV.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||