Skip to content

Erden 0.2.2

Latest

Choose a tag to compare

@github-actions github-actions released this 25 Nov 14:15
· 9 commits to main since this release
110b261

Erden 0.2.2 brings the erden command line tool (also available as den) to npm, makes erden check up to twice as fast on large ontologies, accepts ontology IRIs with capital letters in the host, and fixes several problems with add, install and pack.

Install

Linux (x64 and arm64, glibc or musl) and macOS on Apple silicon:

curl -fsSL https://erden.sh/install | sh

Windows x64, in PowerShell:

irm https://erden.sh/install.ps1 | iex

Homebrew (macOS on Apple silicon, Linux x64 and arm64):

brew install erden-sh/tap/erden

Scoop (Windows x64):

scoop bucket add erden https://github.com/erden-sh/scoop-bucket
scoop install erden

New: npm. For one project (in CI, for example), as a development dependency that your lockfile pins:

pnpm add -D @erden-sh/cli      # or: npm install --save-dev @erden-sh/cli
pnpm exec erden check          # or: npx erden check

Already on 0.2.0 or 0.2.1? Run erden upgrade, or brew upgrade erden or scoop update erden if you installed with Homebrew or Scoop. From 0.1.0, run the install command above once more.

Alpine Linux: install the C++ runtime first, with apk add libstdc++ libgcc.

What's new

  • The CLI is on npm as @erden-sh/cli. @erden-sh/cli holds only a small launcher for erden and den. Erden itself is in one package per platform, @erden-sh/cli-<platform> (linux-x64, linux-arm64, linux-x64-musl, linux-arm64-musl, darwin-arm64, win32-x64), each holding that platform's release archive file for file, byte for byte. They are optional dependencies, so your package manager installs only the one for your machine; installing with --no-optional or --omit=optional leaves Erden out. No package runs an install script. The release workflow publishes them with npm provenance, which npm audit signatures checks.
  • erden check is faster on large ontologies. The steps that run before and after the reasoner and the SHACL validator now do far less repeated work. On QUDT units, a check went from 105 s to 50 s, and on Brick from 154 s to 84 s; smaller projects such as OBO CL and DCAT-AP also finish sooner. The engines get exactly the same requests and the reports are byte for byte the same as before.

What's fixed

  • Ontology IRIs with capital letters in the host work. https://sBPMN.github.io/2.0/ and similar IRIs are now accepted by init, install, check, pack and publish, and are kept exactly as you wrote them. Anything else that is not canonical, such as an upper-case scheme, a default port or dot segments, is still refused.
  • erden add, erden install and erden update name what is missing. When the registry does not publish an alias or ontology IRI, the error now says which one, instead of only "could not be resolved". The error codes are unchanged.
  • Renaming your project no longer breaks erden install. When you change your project's alias or canonical IRI, install updates erden.lock by itself. With --frozen-lockfile or --offline it still refuses, but names the old and new root and the command that fixes it.
  • .erden can be deleted with a plain rm -rf. Its directories are now writable by you; the installed files stay read-only, and edits to them are still detected. The first install with 0.2.2 rebuilds an existing .erden once. An older 0.2.x CLI asks to repair an install written by 0.2.2.
  • erden pack --output works in busy folders. Packing into a folder with many files, such as /tmp, no longer fails with PACK_PROJECT_SOURCE_INVALID. The help now says the output file must end in .erdenpkg and be outside the project.
  • Pack follows your .gitignore. erden pack and erden publish now honor every .gitignore from your git repository's root down to your project and its subfolders, so git-ignored files stay out of your package. They list any data files those rules leave out. The manifest, erden.lock, license and notice files and the files your manifest's sources read are always included. A project without .gitignore files packs to the same bytes as before.

The reasoner and erden-shacl engines are the same builds as in 0.2.0 and 0.2.1.

Verify your download

SHA256SUMS lists the SHA-256 digest of every asset. On Linux, after downloading:

sha256sum -c --ignore-missing SHA256SUMS

Every asset also has a build provenance attestation from the GitHub Actions run that built it. With the GitHub CLI:

gh attestation verify erden-0.2.2-linux-x64.tar.xz --repo erden-sh/erden

The install scripts carry the digest of every archive in this release and refuse any other file. The npm packages carry npm provenance from the same release workflow; npm audit signatures checks it in a project that installed them.

License

Apache License 2.0; the copyright holder is Ingenio Ventures Inc. This is a pre-1.0 release: commands and file formats can still change.