code: def fetchall_triples_xrefs(prefix):
      
      logging.info("fetching xrefs for: "+prefix)
      query = """
      SELECT * WHERE {{
      ?c <{p}> ?x
      }}
      """.format(p=prefixmap[prefix])
      bindings = run_sparql(query)
      rows = [(r['c']['value'], r['x']['value']) for r in bindings]
      return rows
docs: fetch all xrefs for a prefix, e.g. CHEBI