Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ public class LexiconConfiguration<V extends BigdataValue>
*/
final boolean rejectInvalidXSDValues;

/**
* @see AbstractTripleStore.Options#ENABLE_RAW_RECORDS_SUPPORT
*/
final boolean enableRawRecordsSupport;

/**
* @see AbstractTripleStore.Options#EXTENSION_FACTORY_CLASS
*/
Expand Down Expand Up @@ -320,6 +325,9 @@ public String toString() {

sb.append(", " + AbstractTripleStore.Options.REJECT_INVALID_XSD_VALUES + "="
+ rejectInvalidXSDValues);

sb.append(", " + AbstractTripleStore.Options.ENABLE_RAW_RECORDS_SUPPORT + "="
+ enableRawRecordsSupport);

sb.append(", " + AbstractTripleStore.Options.EXTENSION_FACTORY_CLASS+ "="
+ xFactory.getClass().getName());
Expand Down Expand Up @@ -349,6 +357,7 @@ public LexiconConfiguration(//
final boolean inlineDateTimes,//
final TimeZone inlineDateTimesTimeZone,
final boolean rejectInvalidXSDValues,
final boolean enableRawRecordsSupport,//
final IExtensionFactory xFactory,//
final Vocabulary vocab,
final BigdataValueFactory valueFactory,//
Expand Down Expand Up @@ -376,6 +385,7 @@ public LexiconConfiguration(//
this.inlineDateTimes = inlineDateTimes;
this.inlineDateTimesTimeZone = inlineDateTimesTimeZone;
this.rejectInvalidXSDValues = rejectInvalidXSDValues;
this.enableRawRecordsSupport = enableRawRecordsSupport;
this.xFactory = xFactory;
this.vocab = vocab;
this.valueFactory = valueFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,9 @@ public LexiconRelation(final AbstractTripleStore container,
AbstractTripleStore.Options.REJECT_INVALID_XSD_VALUES,
AbstractTripleStore.Options.DEFAULT_REJECT_INVALID_XSD_VALUES));

enableRawRecordsSupport = Boolean.parseBoolean(getProperty(
AbstractTripleStore.Options.ENABLE_RAW_RECORDS_SUPPORT,
AbstractTripleStore.Options.DEFAULT_ENABLE_RAW_RECORDS_SUPPORT));

// Resolve the vocabulary.
vocab = getContainer().getVocabulary();
Expand Down Expand Up @@ -649,8 +652,8 @@ public LexiconRelation(final AbstractTripleStore container,
inlineLiterals, inlineTextLiterals,
maxInlineTextLength, inlineBNodes, inlineDateTimes,
inlineDateTimesTimeZone,
rejectInvalidXSDValues, xFactory, vocab, valueFactory,
uriFactory, geoSpatial, geoSpatialConfig);
rejectInvalidXSDValues, enableRawRecordsSupport, xFactory,
vocab, valueFactory, uriFactory, geoSpatial, geoSpatialConfig);

}

Expand Down Expand Up @@ -931,6 +934,13 @@ public void destroy() {
*/
final private boolean rejectInvalidXSDValues;

/**
* When <code>false</code>, raw records will not be used to store
* the lexical forms of the RDF Values
* {@link AbstractTripleStore.Options#ENABLE_RAW_RECORDS_SUPPORT}.
*/
final private boolean enableRawRecordsSupport;

/**
* The default time zone to be used for decoding inline xsd:datetime
* literals from the statement indices. Will use the current timezeon
Expand Down Expand Up @@ -1338,7 +1348,7 @@ protected IndexMetadata getId2TermIndexMetadata(final String name) {
* @see https://sourceforge.net/apps/trac/bigdata/ticket/506 (Load,
* closure and query performance in 1.1.x versus 1.0.x)
*/
if(true) {
if (enableRawRecordsSupport) {

// enable raw record support.
metadata.setRawRecords(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1326,6 +1326,16 @@ public static interface Options extends AbstractResource.Options,
.getName() + ".computeClosureForSids";

public static String DEFAULT_COMPUTE_CLOSURE_FOR_SIDS = "true";

/**
* If this option is set to false, turn off using raw records
* to store the lexical forms of the RDF Values.
*/
public static String ENABLE_RAW_RECORDS_SUPPORT = AbstractTripleStore.class
.getName() + ".enableRawRecordsSupport";

public static String DEFAULT_ENABLE_RAW_RECORDS_SUPPORT = "true";


}

Expand Down