def make_sbol_xml(self): """ Take an SBOL definition and turn into RDF/XML """ xml_file = BytesIO() self.document.write(xml_file) xml_file.seek(0) return xml_file.read()