Skip to content

@_linked/server-utils major: registerOntologies and core 3 - #127

Merged
flyon merged 10 commits into
mainfrom
dev--coordinated-major
Nov 24, 2026
Merged

flyon merged 10 commits into
mainfrom
dev--coordinated-major

Conversation

@flyon

@flyon flyon commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Part of the coordinated major of the @_linked packages: ontologies register with registerOntologies (core 3), prefixes belong to the app, and the cli 2 ontology layout.

Merges dev (with main merged in) into main, with the @_linked ranges moved to the published majors:

  • dependencies @_linked/core: ^2.39.1 -> ^3.0.0

Locally built with the cli 2 release commit (✔ Build successful).

Changesets

  • patch (host-app-generic.md): Comments and docs describe the host app generically.
  • major (ontology-index.md): The ontology is registered by src/ontologies/index.ts (core's registerOntologies), which the package entry imports; the package registers no prefix (an app's prefix map, linked.app.json, holds the prefixes; the ontology's data suggests one). src/package.ts exports registerOntologies instead of linkedOntology. Requires the @_linked/core major with registerOntologies. Removed: ontologies/server-utils.register, ontologies/lincd-server-utils.register, the dataFiles and loadData exports of ontologies/server-utils, and the server-utils and deprecated lincd-server-utils prefixes (server-utils is not a valid prefix in an app map; the builder maps the namespace to server_utils).
    AppRoot no longer adds the APP_PREFIX → DATA_ROOT prefix when imported: the app's prefix map (linked.app.json) is the one map, and an import-time addition could override one of its prefixes. An app that uses its data-root prefix lists it in its linked.app.json.
  • patch (ontology-name-wording.md): The first-party namespace rule in the ontology's comment reads https://linked.cm/ont/{name}/, {name} being the ontology's name.
  • patch (ontology-vann-data.md): The ontology is declared in package.json "linkedOntologies" and its data states its suggested prefix and namespace (vann:preferredNamespacePrefix, vann:preferredNamespaceUri); the module stays hand-written ("generated": false). No import path or export changes.

Verification

CI (Build & Test) on this PR, built with the cli 2 release commit through the shared workflow's cli-version.

@flyon
flyon merged commit 9cedd0b into main Nov 24, 2026
2 checks passed
@linked-fw-release linked-fw-release Bot mentioned this pull request Nov 24, 2026
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