use of org.apache.jena.hadoop.rdf.types.NodeWritable in project jena by apache.
the class RdfTypesTest method node_writable_literal_03.
/**
* Basic node writable round tripping test
*
* @throws IOException
* @throws InstantiationException
* @throws IllegalAccessException
* @throws ClassNotFoundException
*/
@Test
public void node_writable_literal_03() throws IOException, InstantiationException, IllegalAccessException, ClassNotFoundException {
Node n = NodeFactory.createLiteral("string", XSDDatatype.XSDstring);
NodeWritable nw = new NodeWritable(n);
testWriteRead(nw, nw);
}
use of org.apache.jena.hadoop.rdf.types.NodeWritable in project jena by apache.
the class RdfTypesTest method node_writable_bnode_01.
/**
* Basic node writable round tripping test
*
* @throws IOException
* @throws InstantiationException
* @throws IllegalAccessException
* @throws ClassNotFoundException
*/
@Test
public void node_writable_bnode_01() throws IOException, InstantiationException, IllegalAccessException, ClassNotFoundException {
Node n = NodeFactory.createBlankNode();
NodeWritable nw = new NodeWritable(n);
testWriteRead(nw, nw);
}
use of org.apache.jena.hadoop.rdf.types.NodeWritable in project jena by apache.
the class RdfTypesTest method node_writable_uri_01.
/**
* Basic node writable round tripping test
*
* @throws IOException
* @throws InstantiationException
* @throws IllegalAccessException
* @throws ClassNotFoundException
*/
@Test
public void node_writable_uri_01() throws IOException, InstantiationException, IllegalAccessException, ClassNotFoundException {
Node n = NodeFactory.createURI("http://example.org");
NodeWritable nw = new NodeWritable(n);
testWriteRead(nw, nw);
}
use of org.apache.jena.hadoop.rdf.types.NodeWritable in project jena by apache.
the class RdfTypesTest method node_writable_literal_05.
/**
* Basic node writable round tripping test
*
* @throws IOException
* @throws InstantiationException
* @throws IllegalAccessException
* @throws ClassNotFoundException
*/
@Test
public void node_writable_literal_05() throws IOException, InstantiationException, IllegalAccessException, ClassNotFoundException {
Node n = NodeFactory.createLiteral("123.4", XSDDatatype.XSDdecimal);
NodeWritable nw = new NodeWritable(n);
testWriteRead(nw, nw);
}
use of org.apache.jena.hadoop.rdf.types.NodeWritable in project jena by apache.
the class RdfTypesTest method node_writable_null.
/**
* Basic node writable round tripping test
*
* @throws IOException
* @throws InstantiationException
* @throws IllegalAccessException
* @throws ClassNotFoundException
*/
@Test
public void node_writable_null() throws IOException, InstantiationException, IllegalAccessException, ClassNotFoundException {
Node n = null;
NodeWritable nw = new NodeWritable(n);
testWriteRead(nw, nw);
}
Aggregations