com.bigdata.rdf.internal
Interface ILexiconConfiguration<V extends BigdataValue>

All Known Implementing Classes:
LexiconConfiguration

public interface ILexiconConfiguration<V extends BigdataValue>

Configuration determines which RDF Values are inlined into the statement indices rather than being assigned term identifiers by the lexicon.


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.
 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.
 

Method Detail

createInlineIV

IV createInlineIV(Value value)
Create an inline 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().

Parameters:
value - The RDF value
Returns:
The inline IV -or- null if the Value can not be represented by an IV.

asValue

V asValue(LiteralExtensionIV<?> iv)
Create an RDF value from an AbstractInlineExtensionIV. 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.

Parameters:
iv - the extension IV
Returns:
The RDF Value

asValueFromVocab

V asValueFromVocab(IV<?,?> iv)
Return the Value for that IV iff the IV is declared in the Vocabulary.

Parameters:
iv - The IV.
Returns:
The Value -or- null if the IV was not declared in the Vocabulary.

initExtensions

void initExtensions(LexiconRelation lex)
Initialize the extensions, which need to resolve their datatype URIs into term ids.


getValueFactory

BigdataValueFactory getValueFactory()
Return the value factory for the lexicon.



Copyright © 2006-2012 SYSTAP, LLC. All Rights Reserved.