fixed bug in RDF serialization
make support for migrations functional