@Override final public IV o() { return o.getIV(); }
final public boolean equals(final URI o) { if (this == o) return true; if (o == null) return false; if ((o instanceof BigdataValue) // && isRealIV() && ((BigdataValue)o).isRealIV() && ((BigdataValue) o).getValueFactory() == getValueFactory()) { final boolean equals = getIV().equals(((BigdataValue) o).getIV()); return equals; } return uriString.equals(o.stringValue()); }
@Override public void handle(final IV newIV) { bValue.setIV(newIV); } });
value.setIV(tid); assert value.getIV().equals(tid) : "expecting tid=" + tid + ", but found " + value.getIV(); assert (value).getValueFactory() == valueFactory;
@SuppressWarnings({ "rawtypes", "unchecked" }) private void fillInDummyIV(BigdataValue value) { final IV iv = value.getIV(); if (iv == null) { /* * Since the term identifier is NULL this value is not known * to the kb. */ if (INFO) log.info("Not in knowledge base: " + value); /* * Create a dummy iv and cache the unknown value on it so * that it can be used during query evaluation. */ final IV dummyIV = TermId.mockIV(VTE.valueOf(value)); value.setIV(dummyIV); dummyIV.setValue(value); } else { iv.setValue(value); } }
assertNotSame(NULL, terms[i].getIV()); final IV termId = terms[i].getIV(); terms[i].clearInternalValue(); assertEquals(termId, terms[i].getIV());
/** * Implements {@link Value#stringValue()}. */ @Override public String stringValue() { return getValue().stringValue(); }
impl.setIV(iv); if (impl.getValueFactory() == valueFactory) {
/** * Test of {@link BigdataValueSerializer}. */ private BigdataValue doBigdataValueSerializationTest( final BigdataValue expected) { final BigdataValueSerializer<BigdataValue> ser = expected .getValueFactory().getValueSerializer(); // serialize final byte[] data = ser.serialize(expected); // deserialize final BigdataValue actual = ser.deserialize(data); // Values compare as equal. assertTrue(expected.equals(actual)); return actual; }
if (ivVal instanceof BigdataValue) { final BigdataValue bdVal = (BigdataValue)ivVal; if (!bdVal.isRealIV()) { ivMap.put(iv, bdVal);
value.setIV(tid); assert value.getIV().equals(tid) : "expecting tid=" + tid + ", but found " + value.getIV(); assert (value).getValueFactory() == valueFactory;
@SuppressWarnings({ "rawtypes", "unchecked" }) private void fillInDummyIV(BigdataValue value) { final IV iv = value.getIV(); if (iv == null) { /* * Since the term identifier is NULL this value is not known * to the kb. */ if (INFO) log.info("Not in knowledge base: " + value); /* * Create a dummy iv and cache the unknown value on it so * that it can be used during query evaluation. */ final IV dummyIV = TermId.mockIV(VTE.valueOf(value)); value.setIV(dummyIV); dummyIV.setValue(value); } else { iv.setValue(value); } }
assertNotSame(NULL, terms[i].getIV()); final IV termId = terms[i].getIV(); terms[i].clearInternalValue(); assertEquals(termId, terms[i].getIV());
/** * Implements {@link Value#stringValue()}. */ @Override public String stringValue() { return getValue().stringValue(); }
impl.setIV(iv); if (impl.getValueFactory() == valueFactory) {
/** * Test of {@link BigdataValueSerializer}. */ private BigdataValue doBigdataValueSerializationTest( final BigdataValue expected) { final BigdataValueSerializer<BigdataValue> ser = expected .getValueFactory().getValueSerializer(); // serialize final byte[] data = ser.serialize(expected); // deserialize final BigdataValue actual = ser.deserialize(data); // Values compare as equal. assertTrue(expected.equals(actual)); return actual; }
if (ivVal instanceof BigdataValue) { final BigdataValue bdVal = (BigdataValue)ivVal; if (!bdVal.isRealIV()) { ivMap.put(iv, bdVal);
@Override final public IV o() { return o.getIV(); }
final public boolean equals(final URI o) { if (this == o) return true; if (o == null) return false; if ((o instanceof BigdataValue) // && isRealIV() && ((BigdataValue)o).isRealIV() && ((BigdataValue) o).getValueFactory() == getValueFactory()) { final boolean equals = getIV().equals(((BigdataValue) o).getIV()); return equals; } return uriString.equals(o.stringValue()); }
value.setIV(tid); assert value.getIV().equals(tid) : "expecting tid=" + tid + ", but found " + value.getIV(); assert (value).getValueFactory() == valueFactory;