<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_linked_dataset(self, project_key, dataset_key):
 """Link project to an existing dataset This method links a dataset to project :param project_key: Project identifier, in the form of owner/id :type project_key: str :param dataset_key: Dataset identifier, in the form of owner/id :type project_key: str :raises RestApiException: If a server error occurs Examples -------- """

        try:
            project_owner_id, project_id = parse_dataset_key(project_key)
            dataset_owner_id, dataset_id = parse_dataset_key(dataset_key)
            self._projects_api.add_linked_dataset(project_owner_id,
                                                  project_id,
                                                  dataset_owner_id,
                                                  dataset_id)
        except _swagger.rest.ApiException as e:
            raise RestApiError(cause=e)