Skip to content

Add an export button to the ontology sidebar for the existing Turtle endpoint - #1230

Open
Schro-code wants to merge 2 commits into
deeplethe:devfrom
Schro-code:feat/ontology-export-button
Open

Schro-code wants to merge 2 commits into
deeplethe:devfrom
Schro-code:feat/ontology-export-button

Conversation

@Schro-code

@Schro-code Schro-code commented Oct 14, 2026 •

Copy link
Copy Markdown

Why

GET /kbs/{id}/export exports the whole knowledge base (every fact with its provenance), not just the ontology. An "Export" button on the Ontology page promises the wrong thing.

What changes

  • Removed the export button from the Ontology sidebar.
  • Added an "Export knowledge base (RDF)" card to KbSettings under the General section, where it sits alongside other knowledge-base-level actions.
  • i18n strings updated in both en.ts and zh.ts: "Export knowledge base (RDF)" / "导出整个知识库(RDF)".

How it was checked

  • Verified pnpm build passes (type-checks the new strings and imports).

Before review

  • Every commit is signed off (git commit -s)
  • cargo fmt --all --check, cargo clippy --workspace --all-targets -- -D warnings and cargo test --workspace pass — N/A, no Rust changes
  • For changes under web/: pnpm build and pnpm test pass — yes
  • SQL under crates/utopia-store/ — N/A
  • A new migration — N/A
  • UI strings are in both web/src/i18n/en.ts and zh.ts
  • A change to the data model — N/A

…endpoint

Signed-off-by: Zhoulu <ldazzh@lineadirecta.es>

@WaylandYang WaylandYang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this.

One change: GET /kbs/{id}/export exports the whole knowledge base (every fact with its provenance), not the ontology, so an "Export" next to the ontology's Import promises the wrong thing. Could the button say "Export knowledge base (RDF)" / "导出整个知识库(RDF)" and move to the base's settings (KbSettings)?

Thanks again.

…t exports the whole knowledge base

Signed-off-by: Zhoulu <ldazzh@lineadirecta.es>
@Schro-code

Copy link
Copy Markdown
Author

Perfect — moved the button to KbSettings and renamed it to "Export knowledge base (RDF)" / "导出整个知识库(RDF)". The ontology sidebar no longer has it.

Thanks

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.

2 participants