public RDFXMLRenderer(OWLOntologyManager manager, OWLOntology ontology, Writer w, OWLOntologyFormat format) {
super(ontology, manager, format);
pending = new HashSet<RDFResourceNode>();
renderedAnonymousNodes = new HashSet<RDFResourceNode>();
OWLOntologyXMLNamespaceManager nsm = new OWLOntologyXMLNamespaceManager(manager,
ontology,
format);
String defaultNamespace = nsm.getDefaultNamespace();
String base;
if(defaultNamespace.endsWith("#")) {
base = defaultNamespace.substring(0, defaultNamespace.length() - 1);
}
else {