Added support for instance of, simple statements, and taxonomy export

* Changed EntityDocumentSerializer contract to close the stream (and
renamed the method accordingly).
* Updated RDF serialization example for more convenient serializer
configuration.