Python API to query a SPARQL endpoint