Пример #1
0
 private void writeModel(String filename, OntModel model, NIFParameters nifParameters) {
   try {
     BufferedWriter writer = new BufferedWriter(new FileWriter(filename));
     model.write(writer, Format.toJena(nifParameters.getOutputFormat()));
     writer.close();
   } catch (FileNotFoundException fnf) {
     log.error("Could not find file: " + filename);
   } catch (IOException ioe) {
     log.error("Could not write file: " + filename);
   }
 }