def get_relationship_query_session(self):
if not self.supports_relationship_query():<EOL><INDENT>raise Unimplemented()<EOL><DEDENT>try:<EOL><INDENT>from . import sessions<EOL><DEDENT>except ImportError:<EOL><INDENT>raise OperationFailed()<EOL><DEDENT>try:<EOL><INDENT>session = sessions.RelationshipQuerySession(proxy=self._proxy,<EOL>runtime=self._runtime)<EOL><DEDENT>except AttributeError:<EOL><INDENT>raise OperationFailed()<EOL><DEDENT>return session<EOL>
Gets the ``OsidSession`` associated with the relationship query service.

        return: (osid.relationship.RelationshipQuerySession) - a
                ``RelationshipQuerySession``
        raise:  OperationFailed - unable to complete request
        raise:  Unimplemented - ``supports_relationship_query()`` is
                ``false``
        *compliance: optional -- This method must be implemented if ``supports_relationship_query()`` is ``true``.*