protected int getSoTimeout() {
return 2000;
}
});
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
TripleHandler handler = new NTriplesWriter(byteArrayOutputStream);
TripleHandler rdfWriter = new IgnoreAccidentalRDFa(handler);
ReportingTripleHandler reporting = new ReportingTripleHandler(rdfWriter);
DocumentSource source = getDocumentSourceFromResource(
"/html/rdfa/ansa_2010-02-26_12645863.html",
"http://host.com/service");
Assert.assertTrue(any23.extract(source, reporting)
.hasMatchingExtractors());
try {
handler.close();
} catch (TripleHandlerException e) {
Assert.fail(e.getMessage());
}
final String bufferContent = byteArrayOutputStream.toString();