Claude/schema registry meta model 2upt56#29
Merged
Conversation
tests/fixtures/bbqs_sample.jsonld: real BBQS sample dataset with
Investigator, FundedProject, Organization, Device, Dataset, Publication,
and Software entities in JSON-LD format.
tests/test_transform.py: 13 tests covering transform_record() for every
meaningful BBQS → {bids, nwb, dandi} combination. Registry is patched
with a minimal offline fixture (no live DB or network required):
- Investigator → BIDS Participant: core fields map, bbqs-specific unmapped
- Investigator → NWB: no alignment, warning returned
- Dataset → BIDS/DANDI/NWB: shared fields map, modality gaps detected
- Device → NWB: exact match, name+modality map cleanly
- Device → BIDS: no alignment, warning returned
- Edge cases: unknown schema, empty record, all three targets reachable
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EXeTeJsXisxTRXay6EoBSQ
New "BBQS Live Demo" tab (default) in the Transform view lets users
pick a real BBQS entity (Investigator, Dataset, Device, FundedProject,
Software), choose a target schema, and see field-level mapping results
instantly — entirely in-browser using the registry's alignment edges.
Mirrors the Python transform_record() algorithm:
- Finds BBQS source classes from allClasses
- Follows ALIGNED_TO edges to target classes (distance <= 0.6)
- Case-insensitive property name matching
- Shows mapped fields table (with value + via-alignment annotation),
unmapped field chips, and a "Download mapped JSON" button
Sample data comes from the BBQS bbqssampledataset_1.jsonld fixture.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EXeTeJsXisxTRXay6EoBSQ
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.
No description provided.