def METHOD_NAME(
    cls,
    prefix: str,
    ontology: "pronto.Ontology",
    skip_obsolete: bool = True,
    remove_prefix: bool = False,
):
    prefix = prefix.lower()
    entries = cls.entries_from_ontology(
        prefix=prefix, ontology=ontology, skip_obsolete=skip_obsolete,
        remove_prefix=remove_prefix
    )
    entries = prune_empty_entries(
        entries,
        {"synonyms", "xrefs", "alt_ids", "relations"},
    )
    entries = sorted(
        entries,
        key=itemgetter("id") if remove_prefix else _id_key,
    )
    resource_path = get_resource_path(f"{prefix}.json")
    with open(resource_path, "w") as file:
        json.dump(entries, file, indent=1, sort_keys=True)