def gq_add_vertex_collection(coll):
    """Create the gremlin query that creates a Vertex for a collection in the
    Tree Entry table
    """
    name = coll.entry.container.split('/')[-1]
    if not name: # root
        name = '/'
    
    query = "graph.addVertex(T.label, 'collection', "
    query += "'name', '{}', ".format(name)
    query += "'uuid', '{}', ".format(coll.uuid)
    query += "'create_ts', '{}', ".format(coll.entry.container_create_ts)
    query += "'modified_ts', '{}')".format(coll.entry.container_modified_ts)
    
    return query