Refined class inference and RDF export, added Emacs support for new model