Skip to content

Claude/schema registry meta model 2upt56#29

Merged
Sulstice merged 2 commits into
mainfrom
claude/schema-registry-meta-model-2upt56
Jul 24, 2026
Merged

Claude/schema registry meta model 2upt56#29
Sulstice merged 2 commits into
mainfrom
claude/schema-registry-meta-model-2upt56

Conversation

@Sulstice

Copy link
Copy Markdown
Collaborator

No description provided.

claude added 2 commits July 24, 2026 17:54
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
@Sulstice
Sulstice merged commit 4acdbd3 into main Jul 24, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants