Search in sources :

Example 1 with TermId

use of com.bigdata.rdf.internal.impl.TermId in project wikidata-query-rdf by wikimedia.

the class BigdataValuesHelper method makeIV.

/**
 * Make IV from a value.
 * @param type Value type.
 */
public static IV makeIV(BigdataValueFactory vf, Value value, VTE type) {
    final BigdataValue l = vf.asValue(value);
    TermId mock = TermId.mockIV(type);
    mock.setValue(l);
    l.setIV(mock);
    return mock;
}
Also used : BigdataValue(com.bigdata.rdf.model.BigdataValue) TermId(com.bigdata.rdf.internal.impl.TermId)

Aggregations

TermId (com.bigdata.rdf.internal.impl.TermId)1 BigdataValue (com.bigdata.rdf.model.BigdataValue)1