Skip to content

A container's children view in a layout mode is titled - #460

Closed
namedgraph wants to merge 1 commit into
developfrom
fix/cli-children-view-title
Closed

namedgraph wants to merge 1 commit into
developfrom
fix/cli-children-view-title

Conversation

@namedgraph

Copy link
Copy Markdown
Member

ldh create container --mode <MODE> makes the container's first block an ldh:Object of a new ldh:View of ldh:SelectChildren in that ac:mode (Documents.container).

The problem: the view had no title, so the client headed the block with the ID the server mints for the blank node, e.g. idb4879f40-4403-49ff-b894-813fd30c28e5. A container without --mode uses ldh:ChildrenView, whose rdfs:label the client shows as "Children view".

The fix: the view is now titled dct:title "Children view", the same label, as Documents.CHILDREN_VIEW_TITLE. A container looks the same whether or not it was made with a mode. ModelBuildersTest.createContainerWithMode expects the title.

Found by: Web-Algebra's ldh-CreateContainer, which writes the same document as the CLI (AtomGraph/Web-Algebra#61). Its parity test against the CLI will expect the title too.

Tests: the rdf module (40) and cli (101) pass.

🤖 Generated with Claude Code

ldh create container --mode makes the first block a new ldh:View of
ldh:SelectChildren in that mode. It had no title, so the client headed the
block with the ID the server mints for the blank node
(idb4879f40-4403-...). It is now titled "Children view", the label of
ldh:ChildrenView, which the default container shows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
namedgraph added a commit to AtomGraph/Web-Algebra that referenced this pull request Oct 21, 2026
…dren view"

As LinkedDataHub's CLI now writes it (AtomGraph/LinkedDataHub#460):
untitled, the client headed the block with the ID the server mints for
the blank node.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@namedgraph

Copy link
Copy Markdown
Member Author

Superseded: instead of titling a view built in place, create container drops --mode and --block for --no-children-view, and the caller adds and titles its own view with ldh add view + ldh add object-block (branch feature/cli-no-children-view).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant