Get schema class related to input resource.

    :param resource: resource from which get schema class.
    :param bool besteffort: if True (default) try a best effort in parsing
            the inheritance tree of resource if resource is a class.
    :rtype: type

def getschemacls(resource, besteffort=False):
    """Get schema class related to input resource.

    :param resource: resource from which get schema class.
    :param bool besteffort: if True (default) try a best effort in parsing
            the inheritance tree of resource if resource is a class.
    :rtype: type
    """
    return _SCHEMAFACTORY.getschemacls(
        resource=resource, besteffort=besteffort
    )