Closed cthoyt closed 10 months ago
@matentzn actually, I would much rather delete this functionality entirely and only support the PREFIX_MAP_MODE_MERGED
mode. Given we spent lots of effort to make the curies
integration, this option is much more powerful than before and I can't see why one would choose either of the others.
We should be able at CLI time to allow an option to "fail if a prefix is not declared", like a "strict parsing" mode. This prevents cases like completely automated systems that accidentally infer a completely wrong prefix map for a dataset. I'd prefer to continue supporting that functionality, but I would be ok to move MERGED mode as default..
@matentzn I simplified this PR and took all of the questionable parts out. Now it's just about using type hints better.
This PR does the following: