Currently, sparql querying capability is implemented as a class. This is largely unnecessary and can be implemented as a function.
The benefits are
- The R Client API can simply wrap the query function instead of having to implement its own query logic.
- It aligns with other functions in the Python Client API.
See this PR for more details.