String filename = getValue(argFile) ;
log.info("Dataset: in-memory: load file: "+filename) ;
if ( ! FileOps.exists(filename) )
throw new CmdException("File not found: "+filename) ;
Lang language = Lang.guess(filename) ;
if ( language == null )
throw new CmdException("Can't guess language for file: "+filename) ;
InputStream input = IO.openFile(filename) ;
if ( language.isQuads() )
{
Sink<Quad> sink = new SinkQuadsToDataset(dsg) ;
RiotLoader.readQuads(input, language, filename, sink) ;
}
else