Skip to content

v0.3.0

Choose a tag to compare

@MathiasVDA MathiasVDA released this 29 Nov 21:39
· 115 commits to main since this release
f59ebc9

TripleTrail 0.3.0 brings the map's facets to PostGIS speed, with what RINF Atlas needs to draw its map from TripleTrail alone: a list of the features the filters keep and their extent, a pick of layers on one tile, counts of features without a location, and instances filed under their most specific class. A server other machines reach no longer starts open for changes, every HTML page carries a content security policy, and outbound calls go through your proxy.

Upgrading from 0.2.0

The store format is unchanged, but a server other machines reach now refuses to start open for changes (exit status 2), the Docker image's 0.0.0.0:7878 included. Before you upgrade, choose one:

  • --auth-config to identify callers;
  • both --update-token and --admin-token (TRIPLETRAIL_UPDATE_TOKEN, TRIPLETRAIL_ADMIN_TOKEN), which keeps reads public;
  • --open (TRIPLETRAIL_OPEN=true) to serve it open as before, with a warning. The Helm chart has open: true.

Loopback binds are unchanged. Also check:

  • Memory. After the map's warm-up a server holds more for the facet index (on RINF's eight countries, 2.3 to 2.5 GB instead of 1.35 GB), and maxMemory quotas now count the map's caches.
  • Stale facets. Right after a write, a box's facets are answered from the data before it, marked "stale": true, until the map is warmed again.
  • shapes import-atlas: import RINF Atlas's pack again for 31 layers instead of 45.

The full list is in the CHANGELOG's Upgrading from 0.2.0.

What's new

New

  • GET /{ds}/tiles/features: a page of the features the map's filters keep, with their total and the box around them.
  • Pick the layers of an all tile with collection=, and draw some at every zoom with allZoom=.
  • The map's facets count the features without a geometry (unlocated).
  • tts:mostSpecificOnly files an instance under its most specific collection only; shapes import-atlas sets it.
  • Outbound calls through an HTTP or SOCKS5 proxy (--outbound-proxy), trusting your proxy's CA certificates (--outbound-ca, --outbound-ca-system).
  • ?x tt:hasPeriod ?p reads the period of any OWL-Time, DCAT or schema.org value.
  • tripletrail schema lift writes the Facade-X lift for XML files of a lifted schema.
  • Each release publishes CycloneDX SBOMs; a security model and a compatibility policy.

Improved

  • The map's facets for a new box, a graph filter or the first request after a write answer in tens of milliseconds on RINF's eight countries (31 collections), at PostGIS's speed; after a write the facet index is brought up to date from what the write touched, within seconds for a small change.
  • Bulk loads of N-Triples are about 30 % faster, the spatial index takes half the memory, and the full-text index builds in less than half the memory.

Fixed

  • Every HTML page carries a content security policy, and every answer nosniff.
  • Stale facet answers end once a warm-up is over, even one that could not finish.
  • The count beside a layer on the Map page is what the map draws.
  • A spatial join with many candidate pairs no longer fills the memory.

Install

  • Binaries for Linux (x86_64, aarch64), macOS (Intel, Apple silicon) and Windows below, with SHA256SUMS and CycloneDX SBOMs.
  • Docker: docker pull ghcr.io/matdata-eu/tripletrail:0.3.0
  • JavaScript client: npm install @matdata/tripletrail-client
  • Python: not on PyPI yet; pip install ./python builds it from a checkout.

Full changelog: CHANGELOG.md, 0.3.0