use of org.apache.jena.riot.thrift.wire.RDF_Term in project jena by apache.
the class TestThriftTerm method term_value_21.
@Test
public void term_value_21() {
RDF_Term rt = testTermValue("50e-6");
assertTrue(rt.isSetValDouble());
assertEquals(50e-6, rt.getValDouble(), 0.001e6);
}
use of org.apache.jena.riot.thrift.wire.RDF_Term in project jena by apache.
the class TestThriftTerm method term_bnode_02.
@Test
public void term_bnode_02() {
String label = "abcdefghijklmn";
Node n = NodeFactory.createBlankNode("abcdefghijklmn");
RDF_Term rt = testTerm(n);
assertTrue(rt.isSetBnode());
assertEquals("abcdefghijklmn", rt.getBnode().getLabel());
}
use of org.apache.jena.riot.thrift.wire.RDF_Term in project jena by apache.
the class TestThriftTerm method term_value_10.
@Test
public void term_value_10() {
RDF_Term rt = testTermValue("123.6");
assertTrue(rt.isSetValDecimal());
assertEquals(1236, rt.getValDecimal().getValue());
assertEquals(1, rt.getValDecimal().getScale());
}
use of org.apache.jena.riot.thrift.wire.RDF_Term in project jena by apache.
the class TestThriftTerm method term_value_20.
@Test
public void term_value_20() {
RDF_Term rt = testTermValue("50e6");
assertTrue(rt.isSetValDouble());
assertEquals(50e6, rt.getValDouble(), 0.001);
}
use of org.apache.jena.riot.thrift.wire.RDF_Term in project jena by apache.
the class TestThriftTerm method term_any_1.
@Test
public void term_any_1() {
RDF_Term rt = testTerm(Node.ANY);
assertTrue(rt.isSetAny());
}
Aggregations