def prefixedname_to_str(self, prefix: ShExDocParser.PrefixedNameContext) -> str:
if prefix.PNAME_NS():<EOL><INDENT>return self._lookup_prefix(prefix.PNAME_NS().getText())<EOL><DEDENT>else:<EOL><INDENT>prefix, local = prefix.PNAME_LN().getText().split('<STR_LIT::>', <NUM_LIT:1>)<EOL>return self._lookup_prefix(prefix + '<STR_LIT::>') + (local if local else "<STR_LIT>")<EOL><DEDENT>
prefixedName: PNAME_LN | PNAME_NS
            PNAME_NS: PN_PREFIX? ':' ;
            PNAME_LN: PNAME_NS PN_LOCAL ;