private ASTDeferredIVResolution(AbstractTripleStore store) { if (store == null) throw new IllegalArgumentException(); // this.store = store; this.vf = store.getValueFactory(); }
private ASTDeferredIVResolution(AbstractTripleStore store) { if (store == null) throw new IllegalArgumentException(); // this.store = store; this.vf = store.getValueFactory(); }
@Override final public BigdataValue asValue(final Value value) { return getValueFactory().asValue(value); }
@Override final public BigdataValue asValue(final Value value) { return getValueFactory().asValue(value); }
/** * * @param buffer * The buffer onto which the parsed statements will be written. * @param flush * When true, the <i>buffer</i> will be flushed when the end of * the input is reached. * * @see BLZG-1562 (DataLoader.Options.FLUSH does not defer flush of * StatementBuffer) */ public PresortRioLoader(final IStatementBuffer<?> buffer, final boolean flush) { super(buffer.getDatabase().getValueFactory()); this.buffer = buffer; this.flush = flush; }
/** * Helper method to resolve added and removed terms. */ protected IV<?,?>[] resolveTerms(final URI[] terms) throws Exception { final BigdataValueFactory vf = database.getValueFactory(); final BigdataValue[] values = new BigdataValue[terms.length]; for (int i = 0; i < terms.length; i++) { values[i] = vf.asValue(terms[i]); } database.addTerms(values); final IV<?,?>[] ivs = new IV[terms.length]; for (int i = 0; i < values.length; i++) { ivs[i] = values[i].getIV(); } return ivs; }
@Override protected void setUp() throws Exception { tripleStore = getStore(getProperties()); lex = tripleStore.getLexiconRelation().getNamespace(); valueFactory = tripleStore.getValueFactory(); }
public IV addTerm(final Value value) { final BigdataValue[] terms = new BigdataValue[] {// getValueFactory().asValue(value) // }; getLexiconRelation().addTerms(terms, 1, false/* readOnly */); return terms[0].getIV(); }
@Override public RDFHandler newRDFHandler() { defaultGraphURI = null != defaultGraph && buffer.getDatabase().isQuads() ? buffer.getDatabase ().getValueFactory ().createURI ( defaultGraph ) : null ; return this; }
@Override protected void setUp() throws Exception { tripleStore = getStore(getProperties()); lex = tripleStore.getLexiconRelation().getNamespace(); valueFactory = tripleStore.getValueFactory(); }
@Override public RDFHandler newRDFHandler() { defaultGraphURI = null != defaultGraph && buffer.getDatabase().isQuads() ? buffer.getDatabase ().getValueFactory ().createURI ( defaultGraph ) : null ; return this; }
public IV addTerm(final Value value) { final BigdataValue[] terms = new BigdataValue[] {// getValueFactory().asValue(value) // }; getLexiconRelation().addTerms(terms, 1, false/* readOnly */); return terms[0].getIV(); }
/** * Return a (Mock) IV for a Value. * * @param v * The value. * * @return The Mock IV. */ @SuppressWarnings({ "unchecked", "rawtypes" }) protected IV makeIV(final Value v) { final BigdataValue bv = store.getValueFactory().asValue(v); final IV iv = TermId.mockIV(VTE.valueOf(v)); iv.setValue(bv); return iv; }
/** * Return the {@link BD#NULL_GRAPH} with the {@link IVCache} resolved and * set. * * FIXME This should always be part of the Vocabulary and the IVCache should * be set (which is always true for the vocabulary). */ @SuppressWarnings("unchecked") public BigdataURI getNullGraph() { if (nullGraph == null) { nullGraph = db.getValueFactory().asValue(BD.NULL_GRAPH); db.addTerm(nullGraph); nullGraph.getIV().setValue(nullGraph); } return nullGraph; }
/** * Return a (Mock) IV for a Value. * * @param v * The value. * * @return The Mock IV. */ @SuppressWarnings({ "unchecked", "rawtypes" }) protected IV makeIV(final Value v) { final BigdataValue bv = store.getValueFactory().asValue(v); final IV iv = TermId.mockIV(VTE.valueOf(v)); iv.setValue(bv); return iv; }
@Override protected void setUp() throws Exception { super.setUp(); store = getStore(getProperties()); context = new BOpContextBase(null/* fed */, store.getIndexManager()); valueFactory = store.getValueFactory(); /* * Note: This needs to be an absolute URI. */ baseURI = "http://www.bigdata.com"; }
@Override protected void setUp() throws Exception { super.setUp(); store = getStore(getProperties()); context = new BOpContextBase(null/* fed */, store.getIndexManager()); valueFactory = store.getValueFactory(); /* * Note: This needs to be an absolute URI. */ baseURI = "http://www.bigdata.com"; }
@Override protected void setUp() throws Exception { tripleStore = getStore(getProperties()); lex = tripleStore.getLexiconRelation().getNamespace(); valueFactory = tripleStore.getValueFactory(); }
/** * Return a (Mock) IV for a Value. * * @param v * The value. * * @return The Mock IV. */ @SuppressWarnings({ "unchecked", "rawtypes" }) protected IV makeIV(final Value v) { final BigdataValue bv = store.getValueFactory().asValue(v); final IV iv = TermId.mockIV(VTE.valueOf(v)); iv.setValue(bv); return iv; }
@Override protected void setUp() throws Exception { super.setUp(); store = getStore(getProperties()); context = new BOpContextBase(null/* fed */, store.getIndexManager()); valueFactory = store.getValueFactory(); /* * Note: This needs to be an absolute URI. */ baseURI = "http://www.bigdata.com"; }