@Override public Model writeAll(Writer writer, String lang, String base) { return inner.writeAll(writer, lang, base); }
@Override public Model writeAll(OutputStream outputStream, String s) { return inner.writeAll(outputStream, s); }
@Override public Model writeAll(Writer writer, String s) { return inner.writeAll(writer, s); }
@Override public Model writeAll(OutputStream out, String lang, String base) { return inner.writeAll(out, lang, base); }
/** * Method saves the ontModel as file with name in a specific path. The file has the RDF/XML format and the format .owl. * * @param ontModel is the ontModel, which should be saved. * @param fileName is the name of the file. * @param filePath is the file path. If {@code null} the path is default: src/fileName.owl. * @throws IOException is thrown in case the ontModel could not be saved. */ static void saveOntModel(final OntModel ontModel, final String fileName, String filePath) throws IOException { if (filePath == null) { filePath = "src/"; } OutputStream output = new FileOutputStream(filePath + fileName + ".owl"); ontModel.writeAll(output, "RDF/XML", null); output.close(); LOGGER.info("Saved ontModel in path" + filePath + fileName + ".owl"); }
void printModel(OntModel ontModel, String modelName) { System.out.println("\nThe " + modelName + " model has " + ontModel.size() + " statements:"); System.out.println("---------------------------------------------------------------------"); ontModel.writeAll(System.out,"N3",null); } }
void printModel(OntModel ontModel, String modelName) { System.out.println("\nThe " + modelName + " model has " + ontModel.size() + " statements:"); System.out.println("---------------------------------------------------------------------"); ontModel.writeAll(System.out,"N3",null); } }
void printModel(OntModel ontModel, String modelName) { System.out.println("\nThe " + modelName + " model has " + ontModel.size() + " statements:"); System.out.println("---------------------------------------------------------------------"); ontModel.writeAll(System.out,"N3",null); } }
void printModels(OntModel ontModel) { System.out.println("\nThe model has " + ontModel.size() + " statements:"); System.out.println("---------------------------------------------------"); ontModel.writeAll(System.out,"N3",null); }
void printModel(OntModel ontModel, String modelName) { System.out.println("\nThe " + modelName + " model has " + ontModel.size() + " statements:"); System.out.println("---------------------------------------------------------------------"); ontModel.writeAll(System.out,"N3",null); } }
void printModels(OntModel superModel, OntModel subModel) { // Detach the submodel for printing to get an accurate // account of what is in each. superModel.removeSubModel(subModel); System.out.println("\nThe sub-model has " + subModel.size() + " statements:"); System.out.println("---------------------------------------------------"); subModel.writeAll(System.out,"N3",null); System.out.println("\nThe super-model has " + superModel.size() + " statements:"); System.out.println("---------------------------------------------------"); superModel.write(System.out,"N3",null); superModel.addSubModel(subModel); }
void printModels(OntModel superModel, OntModel subModel) { // Detach the submodel for printing to get an accurate // account of what is in each. superModel.removeSubModel(subModel); System.out.println("\nThe sub-model has " + subModel.size() + " statements:"); System.out.println("---------------------------------------------------"); subModel.writeAll(System.out,"N3",null); System.out.println("\nThe super-model has " + superModel.size() + " statements:"); System.out.println("---------------------------------------------------"); superModel.write(System.out,"N3",null); superModel.addSubModel(subModel); }
void printModels(OntModel superModel, OntModel subModel) { // Detach the submodel for printing to get an accurate // account of what is in each. superModel.removeSubModel(subModel); System.out.println("\nThe sub-model has " + subModel.size() + " statements:"); System.out.println("---------------------------------------------------"); subModel.writeAll(System.out,"N3",null); System.out.println("\nThe super-model has " + superModel.size() + " statements:"); System.out.println("---------------------------------------------------"); superModel.write(System.out,"N3",null); superModel.addSubModel(subModel); }