code: def fetchall_sp(s,p):
      
      query = """
      SELECT * WHERE {{
      <{s}> <{p}> ?x
      }}
      """.format(s=s, p=prefixmap[p])
      bindings = run_sparql(query)
      rows = [r['x']['value'] for r in bindings]
      return rows
docs: fetch all triples for a property