Skip to content

Commit 9fcb160

Browse files
realmarcinclaude
andcommitted
Add RelatedMedia class and MediaRelationshipEnum to CommunityMech schema
Extends schema with cross-repo media linking infrastructure: - MediaRelationshipEnum: classifies media relationships (CULTIVATION_MEDIUM, ISOLATION_MEDIUM, ENVIRONMENT_ANALOG, REFERENCED_IN_STUDY, SELECTIVE_ENRICHMENT) - RelatedMedia class: links communities to CultureMech media via environment overlap, organism overlap, or study context - Updated datamodel, README, and media_linking docs Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 6b8b1f9 commit 9fcb160

4 files changed

Lines changed: 341 additions & 30 deletions

File tree

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ CommunityMech/
130130

131131
- **[Implementation Plan](COMMUNITY_MECH_PLAN.md)** - Complete 11-phase plan
132132
- **[Quick Start Guide](QUICK_START.md)** - Quick reference
133-
- **[Schema Documentation](docs/)** - LinkML schema reference (once generated)
133+
- **[Schema Documentation](docs/)** - LinkML schema reference
134+
- **[Cross-Repo Linking](docs/cross_repo_linking.md)** - Environmental linking to CultureMech and MediaIngredientMech
135+
- **[Growth Media Linking](docs/media_linking.md)** - Cultivation-based media linking
134136

135137
---
136138

@@ -200,7 +202,14 @@ ecological_interactions:
200202
- **Rich YAML** - For agent consumption (full context)
201203
- **Simple KG** - For graph algorithms (Biolink edges)
202204
203-
### 5. Scientist-Friendly
205+
### 5. Cross-Repository Linking
206+
- **Environmental linking** to CultureMech media and MediaIngredientMech ingredients
207+
- Environment-based discovery via shared ENVO terms
208+
- `related_media` for environmentally relevant media (complements `growth_media`)
209+
- `related_ingredients` for environmentally significant compounds
210+
- SPARQL query patterns for cross-repo joins
211+
212+
### 6. Scientist-Friendly
204213
- Faceted browser (no coding required)
205214
- Click-through to evidence
206215
- Interactive visualizations
@@ -215,8 +224,9 @@ ecological_interactions:
215224
- [x] Implementation plan documented
216225
- [x] Reference implementation analyzed (Monarch dismech)
217226
- [x] Seed data added (35 communities)
218-
- [ ] Schema design
219-
- [ ] First example community YAML
227+
- [x] Schema design (LinkML schema with full validation)
228+
- [x] First example community YAML
229+
- [x] Cross-repo environmental linking (CultureMech + MediaIngredientMech)
220230
- [ ] Validation stack setup
221231
- [ ] Koza transform implementation
222232
- [ ] Faceted browser adaptation

docs/media_linking.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ just validate-all
191191

192192
## See Also
193193

194+
- **[Cross-Repo Environmental Linking](cross_repo_linking.md)** -- Environment-based linking via `related_media` and `related_ingredients` fields (complements the cultivation-based linking described here)
194195
- LinkML schema: `src/communitymech/schema/communitymech.yaml`
195-
- GrowthMedia class definition (lines 631-658)
196-
- GrowthMediaComponent class definition (lines 613-630)
196+
- GrowthMedia class definition
197+
- GrowthMediaComponent class definition

0 commit comments

Comments
 (0)