use of org.apache.jena.hadoop.rdf.types.NodeWritable in project jena by apache.
the class RdfTypesTest method node_writable_literal_02.
/**
* Basic node writable round tripping test
*
* @throws IOException
* @throws InstantiationException
* @throws IllegalAccessException
* @throws ClassNotFoundException
*/
@Test
public void node_writable_literal_02() throws IOException, InstantiationException, IllegalAccessException, ClassNotFoundException {
Node n = NodeFactory.createLiteral("language", "en", null);
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_02.
/**
* Basic node writable round tripping test
*
* @throws IOException
* @throws InstantiationException
* @throws IllegalAccessException
* @throws ClassNotFoundException
*/
@Test
public void node_writable_uri_02() throws IOException, InstantiationException, IllegalAccessException, ClassNotFoundException {
Node n = NodeFactory.createURI("http://user:password@example.org/some/path?key=value#id");
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_02.
/**
* Basic node writable round tripping test
*
* @throws IOException
* @throws InstantiationException
* @throws IllegalAccessException
* @throws ClassNotFoundException
*/
@Test
public void node_writable_bnode_02() throws IOException, InstantiationException, IllegalAccessException, ClassNotFoundException {
Node n = NodeFactory.createBlankNode();
NodeWritable nw = new NodeWritable(n);
testWriteRead(nw, nw);
NodeWritable nw2 = new NodeWritable(n);
testWriteRead(nw2, nw2);
Assert.assertEquals(0, nw.compareTo(nw2));
}
use of org.apache.jena.hadoop.rdf.types.NodeWritable in project jena by apache.
the class RdfTypesTest method node_writable_literal_01.
/**
* Basic node writable round tripping test
*
* @throws IOException
* @throws InstantiationException
* @throws IllegalAccessException
* @throws ClassNotFoundException
*/
@Test
public void node_writable_literal_01() throws IOException, InstantiationException, IllegalAccessException, ClassNotFoundException {
Node n = NodeFactory.createLiteral("simple");
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_variable_01.
/**
* Basic node writable round tripping test
*
* @throws IOException
* @throws InstantiationException
* @throws IllegalAccessException
* @throws ClassNotFoundException
*/
@Test
@Ignore
public void node_writable_variable_01() throws IOException, InstantiationException, IllegalAccessException, ClassNotFoundException {
Node n = NodeFactory.createVariable("x");
NodeWritable nw = new NodeWritable(n);
testWriteRead(nw, nw);
}
Aggregations