def get_document(self, iri_id: str, graph_type: str='instance', get_data_version: bool=False, **kwargs) -> dict:
    'Retrieves the document of the iri_id\n\n        Parameters\n        ----------\n        iri_id : str\n            Iri id for the docuemnt that is retriving\n        graph_type : str, optional\n            Graph type, either "instance" or "schema".\n        get_data_version: bool\n            If the data version of the document(s) should be obtained. If True, the method return the result and the version as a tuple.\n        kwargs:\n            Additional boolean flags for retriving. Currently avaliable: "prefixed", "minimized", "unfold"\n\n        Raises\n        ------\n        InterfaceError\n            if the client does not connect to a database\n\n        Returns\n        -------\n        dict\n        '
    self._validate_graph_type(graph_type)
    add_args = ['prefixed', 'minimized', 'unfold']
    self._check_connection()
    payload = {'id': iri_id, 'graph_type': graph_type}
    for the_arg in add_args:
        if (the_arg in kwargs):
            payload[the_arg] = kwargs[the_arg]
    result = requests.get(self._documents_url(), headers={'user-agent': f'terminusdb-client-python/{__version__}'}, params=payload, auth=self._auth())
    if get_data_version:
        (result, version) = _finish_response(result, get_data_version)
        return (json.loads(result), version)
    return json.loads(_finish_response(result))
Retrieves the document of the iri_id

Parameters
----------
iri_id : str
    Iri id for the docuemnt that is retriving
graph_type : str, optional
    Graph type, either "instance" or "schema".
get_data_version: bool
    If the data version of the document(s) should be obtained. If True, the method return the result and the version as a tuple.
kwargs:
    Additional boolean flags for retriving. Currently avaliable: "prefixed", "minimized", "unfold"

Raises
------
InterfaceError
    if the client does not connect to a database

Returns
-------
dict
def get_document(self, iri_id: str, graph_type: str='instance', get_data_version: bool=False, **kwargs) -> dict:
    'Retrieves the document of the iri_id\n\n        Parameters\n        ----------\n        iri_id : str\n            Iri id for the docuemnt that is retriving\n        graph_type : str, optional\n            Graph type, either "instance" or "schema".\n        get_data_version: bool\n            If the data version of the document(s) should be obtained. If True, the method return the result and the version as a tuple.\n        kwargs:\n            Additional boolean flags for retriving. Currently avaliable: "prefixed", "minimized", "unfold"\n\n        Raises\n        ------\n        InterfaceError\n            if the client does not connect to a database\n\n        Returns\n        -------\n        dict\n        '
    self._validate_graph_type(graph_type)
    add_args = ['prefixed', 'minimized', 'unfold']
    self._check_connection()
    payload = {'id': iri_id, 'graph_type': graph_type}
    for the_arg in add_args:
        if (the_arg in kwargs):
            payload[the_arg] = kwargs[the_arg]
    result = requests.get(self._documents_url(), headers={'user-agent': f'terminusdb-client-python/{__version__}'}, params=payload, auth=self._auth())
    if get_data_version:
        (result, version) = _finish_response(result, get_data_version)
        return (json.loads(result), version)
    return json.loads(_finish_response(result))