def expand_mapping_target(namespaces, val):
vals = [v.strip() for v in val.split('<STR_LIT:U+002C>')]<EOL>ret = []<EOL>for v in vals:<EOL><INDENT>inverse = False<EOL>if v.startswith('<STR_LIT>'):<EOL><INDENT>inverse = True<EOL>v = v[<NUM_LIT:1>:]<EOL><DEDENT>ret.append((expand_curielike(namespaces, v), inverse))<EOL><DEDENT>return ret<EOL>
Expand a mapping target, expressed as a comma-separated list of
    CURIE-like strings potentially prefixed with ^ to express inverse
    properties, into a list of (uri, inverse) tuples, where uri is a URIRef
    and inverse is a boolean.