Fuseki¶
kurra.db.fuseki
¶
Functions to work with the Jena Fuseki RDF Database' API
FusekiError(message_context: str, message: str, status_code: int)
¶
describe(base_url: str, dataset_name: str = None, http_client: httpx.Client | None = None) -> dict
¶
Describe the datasetss or a single dataset in a Fuseki server instances.
:param base_url: The base URL of the Fuseki server. E.g., http://localhost:3030 :param dataset_name: The dataset to be described. If None (default), then all datasets will be listed :param http_client: The synchronous httpx client to be used. If this is not provided, a temporary one will be created. :raises FusekiError: If the datasets fail to list or the server responds with an invalid data structure. :returns: The Fuseki listing of datasets as a dictionary.
Source code in kurra/db/fuseki.py
delete(base_url: str, dataset_name: str, http_client: httpx.Client | None = None) -> str
¶
Delete a Fuseki dataset.
:param base_url: The base URL of the Fuseki server. E.g., http://localhost:3030 :param dataset_name: The dataset to be deleted :param http_client: The synchronous httpx client to be used. If this is not provided, a temporary one will be created. :raises FusekiError: If the dataset fails to delete. :returns: A message indicating the successful deletion of the dataset.