@Test
public void testTypedLiteralIncompatibleValueSupport()
throws IOException, ExtractionException, TripleHandlerException {
final URI uri = RDFUtils.uri("http://host.com/test-malformed-literal.turtle");
ByteArrayOutputStream baos = new ByteArrayOutputStream();
final TripleHandler th = new RDFXMLWriter(baos);
final ExtractionContext extractionContext = new ExtractionContext("turtle-extractor", uri);
final ExtractionResult result = new ExtractionResultImpl(extractionContext, extractor, th);
extractor.setStopAtFirstError(false);
try {
extractor.run(
ExtractionParameters.newDefault(),
extractionContext,
this.getClass().getResourceAsStream("/org/apache/any23/extractor/rdf/testMalformedLiteral"),
result
);
} finally {
logger.debug(baos.toString());
th.close();
result.close();
}
}