pub fn upgrade_outcome(
old_typed: &EncodedTerm,
datatype_iri: &str,
lexical: &str,
) -> UpgradeOutcomeExpand description
Plan the upgrade of one orphaned typed literal.
lexical is the typed term’s raw value (inline SmallString or a
registry resolve); datatype_iri is the geo datatype IRI the caller
KNOWS from the discovery prefix (geo:wktLiteral / geo:wkbLiteral).
The parse/validate/transform path is the same
[crate::encode::prepare_geometry_literal] the write plugin uses at
ingest — the upgrade mints exactly the term that ingest would have.