def convert_link(link):
    """Convert the D3 JSON link data into a Multinet-style record."""

    return {
        "_from": f"""characters/{link["source"]}""",
        "_to": f"""characters/{link["target"]}""",
        "value": link["value"],
    }