Skip to main content

Module render

Module render 

Source
Expand description

Entity / Manchester rendering helpers (Protégé Wave 2 ports).

Behavioral ports of OWLEntityRendererImpl, RenderingEscapeUtils, IriSplitter, and prefix expand/match/render helpers.

Functions§

escape_manchester_rendering
Manchester-style escaped rendering (Protégé RenderingEscapeUtils.getEscapedRendering).
expand_prefixed_iri
Expand prefix:local using namespaces. Bare IRIs and <iri> pass through.
match_prefix
Longest-prefix match: returns (prefix, namespace_iri) or None.
render_as_curie
Prefer built-in vocabulary CURIEs (owl:, rdfs:, rdf:, xsd:) then workspace prefixes.
render_entity_iri
Render an entity IRI for display: prefer longest prefix CURIE, else short name, else bracketed IRI.
split_iri
Split an IRI into (namespace, local) using # then / (Protégé IriSplitter-style).
unescape_manchester_rendering
Inverse of escape_manchester_rendering (Protégé RenderingEscapeUtils.unescape).