use of org.apache.jena.datatypes.xsd.XSDDatatype in project jena by apache.
the class TestFmtUtils method doubleLiteral.
@Test
public void doubleLiteral() throws Exception {
Node_Literal nl = (Node_Literal) NodeFactory.createLiteral("2.1e2", new XSDDatatype("double"));
assertEquals("2.1e2", FmtUtils.stringForLiteral(nl, getContext()));
}
use of org.apache.jena.datatypes.xsd.XSDDatatype in project jena by apache.
the class TestDatatypes method checkRegistration1.
private void checkRegistration1(String localName, Resource r) {
XSDDatatype _xsd = (XSDDatatype) NodeFactory.getType(XSD.getURI() + localName);
assertNotNull(_xsd);
assertEquals(r.getURI(), _xsd.getURI());
}
Aggregations