def decorate(self, view):
from functools import wraps<EOL>@wraps(view)<EOL>def decorated(*args, **kwargs):<EOL><INDENT>response = view(*args, **kwargs)<EOL>accept = self.get_accept()<EOL>return self.output(response, accept)<EOL><DEDENT>return decorated<EOL>
Wraps a view function to return formatted RDF graphs
            Uses content negotiation to serialize the graph to the client-preferred format
            Passes other content through unmodified