@classmethod
def from_schema(cls, schema, *args, **kwargs):
    """
        Construct a resolver from a JSON schema object.

        :argument schema schema: the referring schema
        :rtype: :class:`RefResolver`

        """
    return cls(schema.get(u'id', u''), schema, *args, **kwargs)
