Save owl rdf/xml to string without writing to disk

Posted by jritch33 on
URL: http://owlready.306.s1.nabble.com/Save-owl-rdf-xml-to-string-without-writing-to-disk-tp1875.html

Hi Jiba,

Loving Owlready2, great stuff!

I have a web container where I cannot write to disk.

I need to create an ontology using Owlready2 and store the xml/rdf text in a string format. The only way I can do it now is add a path to onto_path and call the save method (which writes to disk) and then read it back into a string variable.

So I need to bypass the save method and store the xml/rdf straight from memory to string. How can I accomplish this with Owlready2?

Thanks,
Jordon