@Override
protected void readWorker(Model model, Tokenizer tokenizer, String base)
{
Sink<Triple> sink = RiotLoader.graphSink(model.getGraph()) ;
try {
LangTurtle parser = RiotReader.createParserTurtle(tokenizer, base, sink) ;
parser.parse() ;
// Merge prefixes.
for ( Map.Entry<String,IRI> e : parser.getProfile().getPrologue().getPrefixMap().getMapping().entrySet() )
model.setNsPrefix(e.getKey(), e.getValue().toString()) ;
} finally
{
sink.close() ;
tokenizer.close() ;