/** Parse an input stream and send the triples to the sink */
public static void readTriples(InputStream input, Lang language, String baseURI, Sink<Triple> sink)
{
if ( ! language.isTriples() )
throw new RiotException("Language not supported for triples: "+language) ;
LangRIOT parser = RiotReader.createParserTriples(input, language, baseURI, sink) ;
parser.parse() ;
sink.flush();
}