Skip to content

feat(web): add ontology export button to sidebar - #1228

Closed
Schro-code wants to merge 1 commit into
deeplethe:mainfrom
Schro-code:upstream/feat-ontology-export-button
Closed

Schro-code wants to merge 1 commit into
deeplethe:mainfrom
Schro-code:upstream/feat-ontology-export-button

Conversation

@Schro-code

Copy link
Copy Markdown

Summary

The server already exposes GET /api/v1/kbs/{id}/export?format=turtle but there was no UI to reach it. This adds a Download button next to the existing Import button in the ontology rail so users can export their ontology as Turtle without resorting to curl.

Changes

  • web/src/pages/Ontology.tsx — add RailItem with Download icon that opens the export endpoint
  • web/src/i18n/en.ts — add exportShort: "Export"
  • web/src/i18n/zh.ts — add exportShort: "导出"

Test plan

  • Button appears in the ontology sidebar below Import
  • Clicking it opens the Turtle export in a new tab
  • Both English and Chinese labels present

The server already exposes GET /api/v1/kbs/{id}/export?format=turtle but
there was no UI to reach it. Add a Download button next to the existing
Import button in the ontology rail so users can export the ontology as
Turtle without resorting to curl.
@Schro-code

Copy link
Copy Markdown
Author

Closing to re-open against dev per CONTRIBUTING.md — PRs must target dev, not main.

@Schro-code Schro-code closed this Oct 14, 2026
@Schro-code
Schro-code deleted the upstream/feat-ontology-export-button branch October 14, 2026 15:54
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