@Override protected void writeBanner(String name) throws IOException { writer.writeComment("\n///////////////////////////////////////////////////////////////////////////////////////\n" + "//\n" + "// " + name + "\n" + "//\n" + "///////////////////////////////////////////////////////////////////////////////////////\n"); }
protected void writeBanner(String name) throws IOException { writer.writeComment( "\n///////////////////////////////////////////////////////////////////////////////////////\n" + "//\n" + "// " + name + "\n" + "//\n" + "///////////////////////////////////////////////////////////////////////////////////////\n"); }
protected void writeClassComment(OWLClass cls) throws IOException { writer.writeComment(EscapeUtils.escapeXML(cls.getIRI().toString())); }
protected void writeDataPropertyComment(OWLDataProperty prop) throws IOException { writer.writeComment(EscapeUtils.escapeXML(prop.getIRI().toString())); }
protected void writeObjectPropertyComment(OWLObjectProperty prop) throws IOException { writer.writeComment(EscapeUtils.escapeXML(prop.getIRI().toString())); }
protected void writeIndividualComments(OWLNamedIndividual ind) throws IOException { writer.writeComment(EscapeUtils.escapeXML(ind.getIRI().toString())); }
protected void writeAnnotationPropertyComment(OWLAnnotationProperty prop) throws IOException { writer.writeComment(EscapeUtils.escapeXML(prop.getIRI().toString())); }
protected void writeDatatypeComment(OWLDatatype datatype) throws IOException { writer.writeComment(EscapeUtils.escapeXML(datatype.getIRI().toString())); }
@Override protected void endDocument() throws IOException { writer.endDocument(); writer.writeComment(VersionInfo.getVersionInfo().getGeneratedByMessage()); if (format instanceof RDFOntologyFormat && !((RDFOntologyFormat) format).isAddMissingTypes()) { // missing type declarations could have been omitted, adding a // comment to document it writer.writeComment("Warning: type declarations were not added automatically."); } }
@Override protected void writeDatatypeComment(OWLDatatype datatype) throws IOException { writer.writeComment(XMLUtils.escapeXML(datatype.getIRI().toString())); }
@Override protected void writeIndividualComments(OWLNamedIndividual ind) throws IOException { writer.writeComment(XMLUtils.escapeXML(ind.getIRI().toString())); }
@Override protected void writeAnnotationPropertyComment(OWLAnnotationProperty prop) throws IOException { writer.writeComment(XMLUtils.escapeXML(prop.getIRI().toString())); }
@Override protected void writeDataPropertyComment(OWLDataProperty prop) throws IOException { writer.writeComment(XMLUtils.escapeXML(prop.getIRI().toString())); }
@Override protected void writeClassComment(OWLClass cls) throws IOException { writer.writeComment(XMLUtils.escapeXML(cls.getIRI().toString())); }
@Override protected void writeObjectPropertyComment(OWLObjectProperty prop) throws IOException { writer.writeComment(XMLUtils.escapeXML(prop.getIRI().toString())); }
protected void endDocument() throws IOException { writer.endDocument(); writer.writeComment(VersionInfo.getVersionInfo().getGeneratedByMessage()); }