URI baseURI = step.getNode().getBaseURI();
URL url = baseURI.resolve(href).toURL();
URLConnection conn = url.openConnection();
StreamRDF dest = StreamRDFLib.dataset(dataset.asDatasetGraph());
LangRIOT parser = RiotReader.createParser(conn.getInputStream(), lang, href, dest);
ErrorHandler handler = new ParserErrorHandler(href);
ParserProfile prof = RiotLib.profile(lang, href, handler);
parser.setProfile(prof);
try {
parser.parse();
} catch (Exception e) {
logger.warn("Parse error in RDFLoad document; processing partial document");
logger.debug(e.getMessage(), e);
}
conn.getInputStream().close();