def get_asset_query_session_for_repository(self, repository_id=None):
if not repository_id:<EOL><INDENT>raise NullArgument()<EOL><DEDENT>if not self.supports_asset_query():<EOL><INDENT>raise Unimplemented()<EOL><DEDENT>try:<EOL><INDENT>from . import sessions<EOL><DEDENT>except ImportError:<EOL><INDENT>raise OperationFailed('<STR_LIT>')<EOL><DEDENT>try:<EOL><INDENT>session = sessions.AssetQuerySession(repository_id,<EOL>proxy=self._proxy,<EOL>runtime=self._runtime)<EOL><DEDENT>except AttributeError:<EOL><INDENT>raise OperationFailed('<STR_LIT>')<EOL><DEDENT>return session<EOL>
Gets an asset query session for the given repository.

        arg:    repository_id (osid.id.Id): the Id of the repository
        return: (osid.repository.AssetQuerySession) - an
                AssetQuerySession
        raise:  NotFound - repository_id not found
        raise:  NullArgument - repository_id is null
        raise:  OperationFailed - unable to complete request
        raise:  Unimplemented - supports_asset_query() or
                supports_visible_federation() is false
        compliance: optional - This method must be implemented if
                    supports_asset_query() and
                    supports_visible_federation() are true.