* - if true, the object property hierarchy is printed
* @param dataProperties
* - if true, the data property hierarchy is printed
*/
public void printHierarchies(PrintWriter out,boolean classes,boolean objectProperties,boolean dataProperties) {
HierarchyPrinterFSS printer=new HierarchyPrinterFSS(out,m_dlOntology.getOntologyIRI()+"#");
if (classes) {
classify();
printer.loadAtomicConceptPrefixIRIs(m_atomicConceptHierarchy.getAllElements());
}
if (objectProperties) {
classifyObjectProperties();
printer.loadAtomicRolePrefixIRIs(m_dlOntology.getAllAtomicObjectRoles());
}
if (dataProperties) {
classifyDataProperties();
printer.loadAtomicRolePrefixIRIs(m_dlOntology.getAllAtomicDataRoles());
}
printer.startPrinting();
boolean atLF=true;
if (classes && !m_atomicConceptHierarchy.isEmpty()) {
printer.printAtomicConceptHierarchy(m_atomicConceptHierarchy);
atLF=false;
}
if (objectProperties && !m_objectRoleHierarchy.isEmpty()) {
if (!atLF)
out.println();
printer.printRoleHierarchy(m_objectRoleHierarchy,true);
atLF=false;
}
if (dataProperties && !m_dataRoleHierarchy.isEmpty()) {
if (!atLF)
out.println();
printer.printRoleHierarchy(m_dataRoleHierarchy,false);
atLF=false;
}
printer.endPrinting();
}