RDFLib/rdflib — pull request #277 by uholzer (2013-05-07 19:02:23+00:00)
Title: Register parsers and serializers with mime-type

This allows to use mime-types for the format argument of Graph.parse and Graph.serialize. Applications that only know the mime-type (e.x. http server or client) do not need a translation table from mime-type to the name of the parser or serializer.

For example:
```
>>> from rdflib import Graph
>>> g = Graph()
>>> g.parse(format="text/turtle", data=b' "bar" .')
)>
>>> g.parse(format="text/n3", data=b' "baz" .')
)>
>>> g.serialize(format="application/rdf+xml")
b'\n\n \n baz\n \n \n bar\n \n\n'
```