def prefix_to_url(self, id):
parts = id.split('<STR_LIT::>')<EOL>if len(parts) > <NUM_LIT:1>:<EOL><INDENT>return '<STR_LIT:{>' + self.prefixes[parts[<NUM_LIT:0>]] + '<STR_LIT:}>' + parts[<NUM_LIT:1>]<EOL><DEDENT>else:<EOL><INDENT>return '<STR_LIT:{>' + self.url + '<STR_LIT:}>' + id<EOL><DEDENT>
prefix_to_url

        High-level api: Convert an identifier from `prefix:tagname` notation to
        `{namespace}tagname` notation. If the identifier does not have a
        prefix, it is assumed that the whole identifier is a tag name.

        Parameters
        ----------

        id : `str`
            Identifier in `prefix:tagname` notation.

        Returns
        -------

        str
            Identifier in `{namespace}tagname` notation.