code: def fetchall_labels(ont):
      
      logging.info("fetching rdfs:labels for: "+ont)
      namedGraph = get_named_graph(ont)
      queryBody = querybody_label()
      query = """
      SELECT * WHERE {{
      GRAPH <{g}>  {q}
      }}
      """.format(q=queryBody, g=namedGraph)
      bindings = run_sparql(query)
      rows = [(r['c']['value'], r['l']['value']) for r in bindings]
      return rows
docs: fetch all rdfs:label assertions for an ontology