From 12ed686dd6bd3aee1c413f212062c441c4f97456 Mon Sep 17 00:00:00 2001 From: Raymond Yee Date: Tue, 28 Apr 2026 17:13:40 -0700 Subject: [PATCH 1/2] Explorer: render SKOS prefLabels for facet URIs (#148 step 2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wires the vocab_labels.parquet artifact (now live at data.isamples.org/vocab_labels.parquet, 58KB) into the Material / Sampled Feature / Specimen Type facets. Adds vocabLabels (URI → prefLabel Map) and a prettyLabel(uri) helper with last-segment fallback for any URIs not declared in the TTLs (4 known stragglers, ~169 of ~6M samples — see #148). Each checkbox row now shows the prefLabel with the full URI in a hover tooltip. Smoke-tested locally: 0 JS exceptions, 0 console errors, 0 network failures. Preload hint added for cache-warm parity with the other parquets. Co-Authored-By: Claude Opus 4.7 (1M context) --- tutorials/isamples_explorer.qmd | 47 ++++++++++++++++++++++++++++----- 1 file changed, 41 insertions(+), 6 deletions(-) diff --git a/tutorials/isamples_explorer.qmd b/tutorials/isamples_explorer.qmd index a3d1a44..99c84c6 100644 --- a/tutorials/isamples_explorer.qmd +++ b/tutorials/isamples_explorer.qmd @@ -11,6 +11,7 @@ format: +