Explorer: render SKOS prefLabels for facet URIs (#148 step 2)#150
Merged
rdhyee merged 2 commits intoisamplesorg:mainfrom Apr 29, 2026
Merged
Explorer: render SKOS prefLabels for facet URIs (#148 step 2)#150rdhyee merged 2 commits intoisamplesorg:mainfrom
rdhyee merged 2 commits intoisamplesorg:mainfrom
Conversation
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 isamplesorg#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) <noreply@anthropic.com>
The three OJS pages that import the canonical SOURCE_COLORS palette were resolving '/assets/js/source-palette.js' against the origin, which works on isamples.org (custom domain at root) but 404s on project-pages fork previews like rdhyee.github.io/isamplesorg.github.io/... The failed import cascades through the OJS reactive graph and breaks every downstream cell in the Explorer / progressive globe. Switch to '../assets/...' (and '../../assets/...' for the archived tutorial one level deeper) so document.baseURI does the right thing in both deploy modes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Second step of #148 — wires the canonical `vocab_labels.parquet` artifact (PR #149) into the Interactive Explorer's facet UI.
Summary
Verification
What this doesn't do
File touched