code: def build_query_uri(self, start=0, count=-1, filter='', query='', sort='', view='', fields='', uri=None, scope_uris=''):
          if filter:
              filter = self.__make_query_filter(filter)
          if query:
              query = "&query=" + quote(query)
          if sort:
              sort = "&sort=" + quote(sort)
          if view:
              view = "&view=" + quote(view)
          if fields:
              fields = "&fields=" + quote(fields)
          if scope_uris:
              scope_uris = "&scopeUris=" + quote(scope_uris)
          path = uri if uri else self._uri
          self.__validate_resource_uri(path)
          symbol = '?' if '?' not in path else '&'
          uri = "{0}{1}start={2}&count={3}{4}{5}{6}{7}{8}{9}".format(path, symbol, start, count, filter, query, sort,
                                                                     view, fields, scope_uris)
          return uri