code: public static void main(String[] args) throws IOException, TrustyUriException {
  		if (args.length < 2) {
  			throw new RuntimeException("Not enough arguments: <file> <graph-uri1> (<graph-uri2> ...)");
  		}
  		File inputFile = new File(args[0]);
  		List<IRI> baseUris = new ArrayList<IRI>();
  		for (int i = 1 ; i < args.length ; i++) {
  			String arg = args[i];
  			if (arg.contains("://")) {
  				baseUris.add(SimpleValueFactory.getInstance().createIRI(arg));
  			} else {
  				BufferedReader reader = new BufferedReader(new FileReader(arg));
  				String line;
  				while ((line = reader.readLine()) != null) {
  				   baseUris.add(SimpleValueFactory.getInstance().createIRI(line));
  				}
  				reader.close();
  			}
  		}
  		RdfFileContent content = RdfUtils.load(new TrustyUriResource(inputFile));
  		String outputFilePath = inputFile.getPath().replaceFirst("[.][^.]+$", "") + ".t";
  		RDFFormat format = content.getOriginalFormat();
  		if (!format.getFileExtensions().isEmpty()) {
  			outputFilePath += "." + format.getFileExtensions().get(0);
  		}
  		transform(content, new File(outputFilePath), baseUris.toArray(new IRI[baseUris.size()]));
  	}
docs: TODO only transform blank nodes that appear within the given graph