from bs4 import BeautifulSoup


def new_rdf_annotation(metaid):
    """
    Creates and returns a standard RDF/XML annotation tag.

    The annotation tag is as follows:

        <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
                 xmlns:bqmodel="http://biomodels.net/model-qualifiers/"
                 xmlns:bqbiol="http://biomodels.net/biology-qualifiers/"
            <rdf:Description rdf:about="<'metaid' argument value>">
            </rdf:Description>
        </rdf:RDF>

    :param metaid: MetaID for SBML object containing this annotation.
    :rtype: bs4.Tag
    """
    return BeautifulSoup(
        f"""
        <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
                 xmlns:bqmodel="http://biomodels.net/model-qualifiers/"
                 xmlns:bqbiol="http://biomodels.net/biology-qualifiers/">
            <rdf:Description rdf:about="{metaid}">
            </rdf:Description>
        </rdf:RDF>
        """,
        features='xml'
    ).find("rdf:RDF")