Python code to convert a mage-ml (xml) document into RDF (nt or n3 serialization).