def get_rdf(request): uri = request.GET.get('url', '') return HttpResponse(uri_to_json(uri), mimetype="application/json")
def toJson(self): return uri_to_json(self.uri, self.db)