get_request
- get_request(url: str, query: str, max_retries: int = 3, base_delay: float = 2.0, timeout: int = 60) list[dict[str, str]] [source]
Send a GET request to a SPARQL endpoint and retrieve JSON data.
- Parameters:
url – The SPARQL endpoint URL.
query – The SPARQL query string.
max_retries – Maximum number of retry attempts.
base_delay – Base delay (in seconds) for retry backoff.
timeout – Timeout for the request in seconds.
- Returns:
A list of dictionaries representing the query results.