@Override public boolean isValid(final Object obj) { /* * Assigns the IV as a side effect iff the RDF Value can * be inlined according to the governing lexicon * configuration and returns true iff the value CAN NOT * be inlined. Thus, inlining is done as a side effect * while the caller sees only those Values which need to * be written onto the TERM2ID/BLOBS index. */ return r.getInlineIV((Value) obj) == null; } }), chunkSize, BigdataValue.class);
@Override public boolean isValid(final Object obj) { /* * Assigns the IV as a side effect iff the RDF Value can * be inlined according to the governing lexicon * configuration and returns true iff the value CAN NOT * be inlined. Thus, inlining is done as a side effect * while the caller sees only those Values which need to * be written onto the TERM2ID/BLOBS index. */ return r.getInlineIV((Value) obj) == null; } }), chunkSize, BigdataValue.class);
IV iv = getInlineIV(value); if (iv != null) return iv;
IV iv = getInlineIV(value); if (iv != null) return iv;
/** * Note: makeIV() in the tests can leave the IV as a MockIV since we will * never have anything in the database (unless there is a Vocabulary or it * is otherwise inline, in which case this code is sufficient to resolve the * inline IV). */ @SuppressWarnings("unchecked") protected IV<BigdataValue, ?> makeIV(final BigdataValue value) { @SuppressWarnings("rawtypes") IV iv = tripleStore.getLexiconRelation().getInlineIV(value); if (iv == null) { iv = (IV<BigdataValue, ?>) TermId.mockIV(VTE.valueOf(value)); iv.setValue(value); } return iv; }
/** * Note: makeIV() in the tests can leave the IV as a MockIV since we will * never have anything in the database (unless there is a Vocabulary or it * is otherwise inline, in which case this code is sufficient to resolve the * inline IV). */ @SuppressWarnings("unchecked") protected IV<BigdataValue, ?> makeIV(final BigdataValue value) { @SuppressWarnings("rawtypes") IV iv = tripleStore.getLexiconRelation().getInlineIV(value); if (iv == null) { iv = (IV<BigdataValue, ?>) TermId.mockIV(VTE.valueOf(value)); iv.setValue(value); } return iv; }
if (getInlineIV(v) == null) {
if (getInlineIV(v) == null) {
/** * Note: makeIV() in the tests can leave the IV as a MockIV since we will * never have anything in the database (unless there is a Vocabulary or it * is otherwise inline, in which case this code is sufficient to resolve the * inline IV). */ @SuppressWarnings("unchecked") protected IV<BigdataValue, ?> makeIV(final BigdataValue value) { @SuppressWarnings("rawtypes") IV iv = tripleStore.getLexiconRelation().getInlineIV(value); if (iv == null) { iv = (IV<BigdataValue, ?>) TermId.mockIV(VTE.valueOf(value)); iv.setValue(value); } return iv; }
iv = getInlineIV(val);
final IV c12 = makeIV(store.getValueFactory().createLiteral(12)); @SuppressWarnings("rawtypes") final IV c13 = store.getLexiconRelation().getInlineIV( store.getValueFactory().createLiteral("13", XSD.INTEGER)); store.commit();
final IV c12 = makeIV(store.getValueFactory().createLiteral(12)); @SuppressWarnings("rawtypes") final IV c13 = store.getLexiconRelation().getInlineIV( store.getValueFactory().createLiteral("13", XSD.INTEGER)); store.commit();
final IV c12 = makeIV(store.getValueFactory().createLiteral(12)); @SuppressWarnings("rawtypes") final IV c13 = store.getLexiconRelation().getInlineIV( store.getValueFactory().createLiteral("13", XSD.INTEGER)); store.commit();