@Override
protected void runTest()
throws Exception
{
// Parse input data
RDFParser turtleParser = createRDFParser();
turtleParser.setDatatypeHandling(RDFParser.DatatypeHandling.IGNORE);
Set<Statement> inputCollection = new LinkedHashSet<Statement>();
StatementCollector inputCollector = new StatementCollector(inputCollection);
turtleParser.setRDFHandler(inputCollector);
InputStream in = inputURL.openStream();
try {
turtleParser.parse(in, base(baseURL));
}
finally {
in.close();
}
// Parse expected output data
RDFFormat outputFormat = Rio.getParserFormatForFileName(outputURL.toExternalForm());
RDFParser outputParser = Rio.createParser(outputFormat);
outputParser.setDatatypeHandling(RDFParser.DatatypeHandling.IGNORE);
Set<Statement> outputCollection = new LinkedHashSet<Statement>();
StatementCollector outputCollector = new StatementCollector(outputCollection);
outputParser.setRDFHandler(outputCollector);
in = outputURL.openStream();
try {
outputParser.parse(in, base(baseURL));
}
finally {
in.close();
}