use of org.apache.jena.hadoop.rdf.types.NodeWritable in project jena by apache.
the class RdfTypesTest method node_writable_variable_02.
/**
* Basic node writable round tripping test
*
* @throws IOException
* @throws InstantiationException
* @throws IllegalAccessException
* @throws ClassNotFoundException
*/
@Test
@Ignore
public void node_writable_variable_02() throws IOException, InstantiationException, IllegalAccessException, ClassNotFoundException {
Node n = NodeFactory.createVariable("really-log-variable-name-asddsfr4545egfdgdfgfdgdtgvdg-dfgfdgdfgdfgdfg4-dfvdfgdfgdfgfdgfdgdfgdfgfdg");
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_06.
/**
* Basic node writable round tripping test
*
* @throws IOException
* @throws InstantiationException
* @throws IllegalAccessException
* @throws ClassNotFoundException
*/
@Test
public void node_writable_literal_06() throws IOException, InstantiationException, IllegalAccessException, ClassNotFoundException {
Node n = NodeFactory.createLiteral("12.3e4", XSDDatatype.XSDdouble);
NodeWritable nw = new NodeWritable(n);
testWriteRead(nw, nw);
}
use of org.apache.jena.hadoop.rdf.types.NodeWritable in project jena by apache.
the class AbstractCharacteristicSetGeneratingReducerTests method characteristic_set_generating_reducer_04.
/**
* Test basic characteristic set computation
*
* @throws IOException
*/
@Test
public void characteristic_set_generating_reducer_04() throws IOException {
MapReduceDriver<LongWritable, T, NodeWritable, T, CharacteristicSetWritable, NullWritable> driver = this.getMapReduceDriver();
T tuple = this.createTuple(1, "http://predicate");
driver.addInput(new LongWritable(1), tuple);
tuple = this.createTuple(1, "http://other");
driver.addInput(new LongWritable(1), tuple);
// Single entry sets
this.createSet(driver, 1, "http://predicate");
this.createSet(driver, 1, "http://other");
// Two entry sets
this.createSet(driver, 1, "http://predicate", "http://other");
driver.runTest(false);
}
use of org.apache.jena.hadoop.rdf.types.NodeWritable in project jena by apache.
the class AbstractCharacteristicSetGeneratingReducerTests method characteristic_set_generating_reducer_03.
/**
* Test basic characteristic set computation
*
* @throws IOException
*/
@Test
public void characteristic_set_generating_reducer_03() throws IOException {
MapReduceDriver<LongWritable, T, NodeWritable, T, CharacteristicSetWritable, NullWritable> driver = this.getMapReduceDriver();
T tuple = this.createTuple(1, "http://predicate");
driver.addInput(new LongWritable(1), tuple);
tuple = this.createTuple(2, "http://predicate");
driver.addInput(new LongWritable(2), tuple);
this.createSet(driver, 2, "http://predicate");
driver.runTest(false);
}
use of org.apache.jena.hadoop.rdf.types.NodeWritable in project jena by apache.
the class AbstractCharacteristicSetGeneratingReducerTests method characteristic_set_generating_reducer_02.
/**
* Test basic characteristic set computation
*
* @throws IOException
*/
@Test
public void characteristic_set_generating_reducer_02() throws IOException {
MapReduceDriver<LongWritable, T, NodeWritable, T, CharacteristicSetWritable, NullWritable> driver = this.getMapReduceDriver();
T tuple = this.createTuple(1, "http://predicate");
driver.addInput(new LongWritable(1), tuple);
driver.addInput(new LongWritable(1), tuple);
this.createSet(driver, 1, "http://predicate");
driver.runTest(false);
}
Aggregations