stac-extensions / stac-extensions/table

Capture table relationships

Open
#2 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
No language data
Stars
7
Forks
1
PR merge metrics
No merged PRs in 30d

Description

When working with collections of tables that are essentially a database export (e.g. https://github.com/microsoft/AIforEarthDataSets/blob/main/data/forest-inventory-and-analysis.md) tables will often be linked by one or more primary / foreign keys.

We might be able to expose that metadata through a [ relations ] object on Column object. Each Relation would be something like

Field Type Description
table string Name of the other table. Should be present in table:columns.
columns [ string ] Colum names from the other table to join on

We could maybe have a type to that's one-to-one, one-to-many, many-to-one, or many-to-many. Dunno if that would be useful.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing Column object and the table:columns structure described by the issue. Define whether a relations object belongs on Column, what table and columns must contain, and whether relationship type is needed. Done means the relationship metadata model and its expected behavior are decided and documented for the linked database-export example.

Written by the indexing model from the issue text.

Assessment

Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.