* @throws IOException from file reading
* @throws ModelRuntimeException from underlying IO errors, if any.
*/
public static void convert(File[] inFiles, Syntax[] inSyntax, File out, Syntax outSyntax)
throws ModelRuntimeException, IOException {
Model merged = RDF2Go.getModelFactory().createModel();
for(int i = 0; i < inFiles.length; i++) {
Model inModel = loadFromFile(inFiles[i], inSyntax[i]);
ClosableIterator<Statement> it = inModel.iterator();
merged.addAll(it);
it.close();
}
writeToFile(merged, out, outSyntax);
}