Fixed some bugs in RDF parsing
Serializing/parsing RDF test working