← Back to list

pv-mapping
by linkml
Common value sets (enums) for science, biomedicine, computing, and other areas
⭐ 11🍴 0📅 Jan 13, 2026
SKILL.md
name: pv-mapping description: > Map permissible values in LinkML enums to ontology terms. Use this skill when: (1) Adding or updating ontology mappings (meaning: field) for enum permissible values, (2) Fixing validation errors from linkml-term-validator, (3) User asks to map enums to ontology terms or fix CURIE mappings. This skill covers OAK/runoak lookup, CURIE verification, and validation workflows.
Permissible Value Ontology Mapping
Core Rules
- Never change PERMISSIBLE_VALUE names - Keep uppercase names like
NUCLEIC_ACID - Use
title:for ontology label - Match the ontology term's label - Use
meaning:for CURIE - Always verify via runoak before adding - Never guess CURIEs - Wrong mappings are worse than no mappings
Workflow
1. Look up term via runoak
# Search for terms
runoak -i sqlite:obo:ncit search "nucleic acid"
# Verify a CURIE exists and get its label
runoak -i sqlite:obo:ncit info NCIT:C706
2. Add mapping
NUCLEIC_ACID:
title: Nucleic Acids # matches ontology term label
description: DNA or RNA sample
meaning: NCIT:C706 # verified CURIE
Note that either the permissible value key, the title, or one of the aliases should be a (case insensitive) match to the ontology term.
If there is already a canonical meaning field, OR the concept is not a close map, then linkml close/narrow/broad/exact mappings can be used:
NUCLEIC_ACID:
title: Nucleic Acids # matches ontology term label
description: DNA or RNA sample
meaning: NCIT:C706 # verified CURIE
close_mappings:
- SO:0000348. # label is nucleic_acid
aliases:
- nucleic_acid # to match SO
3. Validate
just validate
Interpreting Validation Errors
| Error Type | Action |
|---|---|
| "resolves to [wrong concept]" | Fix immediately - CURIE points to wrong term |
| "label mismatch" | Usually OK - add title: to match label if needed, or use an aliases |
| "Could not retrieve" | Check CURIE format or remove if term doesn't exist |
Ontology Selection
See references/ontologies.md for:
- Domain-to-ontology mapping (which ontology for which concept type)
- CURIE format patterns for each ontology
- Additional runoak commands
When to Remove Mappings
Remove meaning: when:
- No appropriate ontology term exists
- CURIE consistently fails validation
- Mapped term is semantically incorrect or not the same concept
Score
Total Score
65/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon


