Skip to content

A type could declare how it is shown, the way it declares how it holds in time #1482

Open

Description

@gedaiu

A type could declare how it is shown, the way it declares how it holds in time

Thank you for 0031: utopia:temporal on a property, read from the imported ontology and used by the engine, is the pattern that made us want to ask this. It is a question about the entity panel, and we would value your view before we build anything beyond our fork.

What we see

Our bases hold facts pushed through the open contract (0054) under an imported ontology. The entity panel renders them faithfully as rows: line_start 10, line_end 24, outcome passed, forty contains rows under a container, a lines 12-30,44-50 qualifier trailing its object. All of it is right, and none of it reads the way a person who knows the domain would draw it: a status wants a dot and a word, a start and end want L10–L24, children want nesting, a path of relations wants to be walked as a chain. We do not think the panel should learn our domain. We wondered whether the ontology could tell it the little it needs.

What we would like to ask

Would you take a small set of display annotations on classes and properties, in the utopia: namespace, parsed where utopia:temporal is parsed, stored beside it and served in /ontology, so that the panel can render any domain that declares them and keeps today's rows for one that does not? Something like:

On Annotation Values Meaning
Class utopia:panel card, tree, quote which header the entity gets
Class utopia:chain_first `[in: out:]`
ObjectProperty utopia:role children, membership nest the objects under the subject; walk upward as a breadcrumb
ObjectProperty utopia:chain_next `[in: out:]`
DatatypeProperty utopia:role title, status, span_start, span_end, link, key, quote header text, a status dot, a line span, a permalink, a monospace key, a quotation
DatatypeProperty utopia:tones "a=ok,b=danger" the tone of each status value
Qualifier utopia:role range render 12-30,44-50 as ranges

Unknown utopia:* keys would stay reported as unprojected, as now. Nothing in the engine would read them; only the panel and a "chain" page that follows chain_first and chain_next one column per hop.

We are aware the vocabulary is the part worth arguing about, and we would rather adopt your names than ours. If the idea does not fit where the panel is going, we will keep it on our fork and not mind. If it does, we will send the parse-and-store half first, small and behind tests, and the rendering after you have seen it run.

Activity

  1. WaylandYang commented on Nov 25, 2026

    @WaylandYang
    Contributor

    I like the principle: the ontology says the little the panel needs, and the engine never reads it. It also fits the existing pattern (utopia:temporal, unknown keys reported as unprojected).

    I'd start smaller: utopia:role on datatype properties (title / status / span_start / span_end / link / key) and utopia:tones, stored as one display value per type or relation, served in /ontology, and written back out on export. Nesting (children / membership), panel, range and the chain annotations are a bigger question: a chain page is navigation, not display, and may belong with scenario-pack questions (0073). Could you write a short ADR for the first half? I'll comment on the names there.

  2. gedaiu commented on Nov 29, 2026

    @gedaiu
    ContributorAuthor

    Thank you so much, this smaller first step makes a lot of sense. I've sent the short record as #1549: utopia:role with the six values and utopia:tones, served in /ontology, written back on export and never read by the engine. Nesting, panel, range and the chains are left out, with a pointer to 0073. I'm very happy to change any of the names, whatever reads best to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions