def METHOD_NAME(ctx, endpoint, rule_path, verbose, schema, out):
    r = load_yamldown(rule_path)
    s = schema if schema else SCHEMA
    validate(r, s)
    if not rule.sparql_from(r):
        raise click.ClickException("No SPARQL implementation for this rule.")
    result = rule.test_rule(r, endpoint)
    click.echo(result.short_summary())
    if result.returned and verbose:
        click.echo(result.verbose_readable())
    if out:
        json.dump(result.jsonify(), out, indent=4)
    if result.passing in ["Warn", "Fail"]:
        ctx.exit(1)