code: private void readStatements(InputStream in, RDFFormat format, String baseUri)
  			throws MalformedNanopubException, RDF4JException, IOException {
  		try {
  			RDFParser p = NanopubUtils.getParser(format);
  			p.setRDFHandler(new AbstractRDFHandler() {
  	
  				@Override
  				public void handleNamespace(String prefix, String uri) throws RDFHandlerException {
  					nsPrefixes.add(prefix);
  					ns.put(prefix, uri);
  				}
  	
  				@Override
  				public void handleStatement(Statement st) throws RDFHandlerException {
  					statements.add(st);
  				}
  	
  			});
  			p.parse(new InputStreamReader(in, Charset.forName("UTF-8")), baseUri);
  		} finally {
  			in.close();
  		}
  	}
docs: TODO Is the baseURI really needed? Shouldn't the input stream contain all needed data?