def METHOD_NAME(data):
    """Validates all metadata against the SHACL schema.
    Args:
        data: JSON-LD data to validate.
    Returns:
        Validation result.
    """
    rdf = pyld.jsonld.to_rdf(data, options={"format": "application/n-quads", "produceGeneralizedRdf": True})
    return validate_graph(rdf)