def _select_query_method(cls, url):
    """Select the correct query method based on the URL

    Works for `DataQualityFlag` and `DataQualityDict`
    """
    if urlparse(url).netloc.startswith('geosegdb.'):  # only DB2 server
        return cls.query_segdb
    return cls.query_dqsegdb
Select the correct query method based on the URL

    Works for `DataQualityFlag` and `DataQualityDict`