read_query

read_query(query: str | Path) str[source]

Read a SPARQL query from a file path or URL.

Parameters:

query – Path to local file or URL to fetch query from.

Returns:

The SPARQL query string.

Raises:

DataLoadingError – If the query cannot be loaded.