Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def doc_serialize_rdf2xml(self, outfile):
"""
Serialize RDF XML.
:param outfile: output file
:return: None
"""
self.update_graph()
rdf = SBOL2Serialize.serialize_sboll2(self.graph).decode('utf-8')
self.logger.debug("RDF: "+ rdf)
self.logger.debug("TYPE: " + str(type(rdf)))
with open(outfile, 'w') as out:
out.write(rdf)
out.flush()