def get_graph(request, gid, serialize=True): """ get json graph object for the given graph id (gid) and django http request object """ request.GET = request.GET.copy() request.GET["full"] = "true" return get_api_object(GraphResource, request, gid, serialize=serialize)
def get_dependency(request, did, serialize=True): """ get dependency object for the given dependency id (did) and django http request object """ return get_api_object(DependencyResource, request, did, serialize=serialize)
def get_targetgraph(request, gid, serialize=True): """ get json targetgraph object for the given graph id (gid) and django http request object """ return get_api_object(TargetGraphResource, request, gid, serialize=serialize, id_field="leaf")
def get_concept(request, cid, serialize=True): """ get concept object for the given concept id (cid) and django http request object """ return get_api_object(ConceptResource, request, cid, serialize=serialize)