@staticmethod
def wildcard_match(uri: str, wildcard: str) ->bool:
    """Check if the URI matches the wildcard.

        Wildcards have empty URI components which can match anything
        (apart from '.').

        Args:
            uri: URI to be checked.
            wildcard: Wildcard to check against.

        Returns:
            Whether the URI matches the wildcard.
        """
    parts = uri.split('.')
    wc_parts = wildcard.split('.')
    if len(parts) != len(wc_parts):
        return False
    for part, wc_part in zip(parts, wc_parts):
        if wc_part and wc_part != part:
            return False
    return True
