Expand description
Portable presentation/util helpers (Protégé Wave 3 ports).
Behavioral ports of StringAbbreviator, ISO8601Formatter,
LiteralLexicalValueReplacer, MarkdownRenderer, and
AnnotationPropertyComparator default ordering.
Keep the annotation-property order in sync with
extension/webview-ui/src/utils/annotationOrder.ts.
Structs§
- Lexical
Literal - Result of a lexical value replacement (lang XOR datatype preserved).
Constants§
- DEFAULT_
ANNOTATION_ PROPERTY_ ORDER - Default annotation-property IRI ordering (Protégé
AnnotationPropertyComparator). - ELLIPSIS
- Protégé
StringAbbreviator.ELLIPSIS(U+2026).
Functions§
- abbreviate_
string - Abbreviate
sto at mostmax_lencharacters, appending an ellipsis when truncated. - cmp_
annotation_ property_ iri - Compare annotation-property IRIs using the Protégé default ordering. Unknown IRIs sort after known ones, then lexicographically.
- format_
iso8601_ utc - Format a UTC datetime as
yyyy-MM-dd'T'HH:mm:ss'Z'(Protégé ISO8601Formatter). - render_
entity_ markdown - Markdown entity link:
[unescaped display](iri)(ProtégéMarkdownRenderer). - replace_
lexical_ value - Replace the lexical form via regex, preserving language tag or datatype IRI.
- replace_
lexical_ value_ whole - Whole-string lexical replacement (Protégé
replaceLexicalValuewithout pattern).