ontocast.tool.representation_text¶
Shared text normalization and deterministic triple rendering helpers.
normalize_identifier(text)
¶
Normalize identifier-like text with camel/snake/kebab splitting.
Source code in ontocast/tool/representation_text.py
normalize_text(text)
¶
Normalize free text for embedding and matching.
Source code in ontocast/tool/representation_text.py
normalize_uri_local_name(uri)
¶
render_term_for_text(term)
¶
Render a graph term into deterministic text.
Source code in ontocast/tool/representation_text.py
role_from_predicate_usage(*, is_predicate)
¶
Map predicate-position usage to vector-store role vocabulary.
stable_sorted_triples(triples)
¶
Return a deterministic ordering of triples.