def iriref_to_str(self, ref: ShExDocParser.IRIREF) -> str:
rval = ref.getText()[<NUM_LIT:1>:-<NUM_LIT:1>].encode('<STR_LIT:utf-8>').decode('<STR_LIT>')<EOL>return rval if '<STR_LIT::>' in rval or not self.base else self.base.val + rval<EOL>
IRIREF: '<' (~[\u0000-\u0020=<>\"{}|^`\\] | UCHAR)* '>