def get_activities_by_query(self, activity_query=None):
url_path = construct_url('<STR_LIT>',<EOL>bank_id=self._catalog_idstr)<EOL>query_terms = [v for k, v in activity_query._query_terms.items()]<EOL>url_path += '<STR_LIT:?>' + '<STR_LIT:&>'.join(query_terms)<EOL>objects.ActivityList(self._get_request(url_path))<EOL>
Gets a list of Activities matching the given activity query.

        arg:    activityQuery (osid.learning.ActivityQuery): the
                activity query
        return: (osid.learning.ActivityList) - the returned ActivityList
        raise:  NullArgument - activityQuery is null
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure
        raise:  Unsupported - activityQuery is not of this service
        compliance: mandatory - This method must be implemented.