pub fn normalize(
registry: &Registry,
document: &Value,
) -> Result<Processed, Error>Expand description
Read a document however it was written, and hand it back in ojak’s own spelling.
This is expansion followed by compaction against ojak’s context: whatever aliases, prefixes and extension vocabularies the sender used are resolved to IRIs and then written back with the terms ojak’s vocabulary types expect. A term from a context ojak does not ship survives as its full IRI rather than as the sender’s abbreviation, so nothing is silently renamed.