InputStream in = inputURL.openStream();
turtleParser.parse(in, baseURL);
in.close();
// Parse expected output data
NTriplesParser ntriplesParser = new NTriplesParser();
ntriplesParser.setDatatypeHandling(RDFParser.DatatypeHandling.IGNORE);
Set<Statement> outputCollection = new LinkedHashSet<Statement>();
StatementCollector outputCollector = new StatementCollector(outputCollection);
ntriplesParser.setRDFHandler(outputCollector);
in = outputURL.openStream();
ntriplesParser.parse(in, baseURL);
in.close();
// Check equality of the two models
if (!ModelUtil.equals(inputCollection, outputCollection)) {
System.err.println("===models not equal===");