Model model = ModelFactory.createDefaultModel();
RDFReader r = model.getReader( "RDF/XML" );
r.setProperty( "error-mode", "strict-error" );
final List<String> errors = new ArrayList<String>();
r.setErrorHandler( new RDFDefaultErrorHandler()
{
@Override
public void error( Exception e )
{
errors.add( e.getMessage() );