Added RDF structs
Added new helper functions and cleand up file
added RDF dataset
Added first version of serialization API. still untested
Fixed bug in flattening API.