Skip to content

Knowledge Graph: a region links its UBERON term and named atlas areas; custom entity only with neither - #36

Merged
ree-gupta merged 1 commit into
mainfrom
anatomy-uberon
Nov 25, 2026
Merged

ree-gupta merged 1 commit into
mainfrom
anatomy-uberon

Conversation

@ree-gupta

Copy link
Copy Markdown
Member

Third pull request of 0.1.4. The anatomical location of an electrode array links what already exists instead of wrapping it.

  • A placement's brain region is its UBERON term itself. Before, every region got a custom anatomical entity that repeated the term's name and linked to it.
  • Where a placement or the collection's atlas registry names an atlas area (atlas area: the exact name of the area's entity, one name or a list), that entity is looked up in the Knowledge Graph space the registry gives (area_space) and referenced next to the UBERON term. It is never built here; a name the space does not hold stops the build.
  • A custom anatomical entity is built only for a region with neither, one per name.

Two exceptions to "never lose information", decided on 2026-11-25:

  • A region label narrower than its UBERON term is named in the Knowledge Graph by that term until an atlas area is given.
  • The hemisphere is not exported to the Knowledge Graph until a place for it is named.

Both stay in the metadata record, the BIDS files and the NWB files, which this pull request does not touch.

Schemas: atlas area takes a string or a list (recordings schema 1.1, hardware schema 1.3); existing files stay valid.

Tried offline on 14 datasets: 25 custom entities become 2, and 460 of 475 array usages point to a UBERON term. Tried read-only against the Knowledge Graph: a named area is found and referenced, a wrong name raises.

The existing anatomy test follows the new rule and covers a list; 175 tests pass.

…; custom entity only with neither

Decided 2026-11-25: a region label narrower than its UBERON term is named in the Knowledge Graph by that term until an atlas area is given, and the hemisphere is not exported until a place for it is named. Both stay in the metadata record, BIDS and NWB.
@ree-gupta
ree-gupta merged commit 643aa2e into main Nov 25, 2026
3 of 12 checks passed
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.

1 participant