def fetchall_sp(s,p):
    """
    fetch all triples for a property
    """
    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
fetch all triples for a property