code: def fetchall_textdefs(ont):
      
      logging.info("fetching text defs for: "+ont)
      namedGraph = get_named_graph(ont)
      query = """
      prefix IAO: <http://purl.obolibrary.org/obo/IAO_>
      SELECT * WHERE {{
      GRAPH <{g}>  {{
        ?c IAO:0000115 ?d
      }}
      FILTER (!isBlank(?c))
      }}
      """.format(g=namedGraph)
      bindings = run_sparql(query)
      rows = [(r['c']['value'], r['d']['value']) for r in bindings]
      return rows
docs: fetch all text defs for an ontology