ontology-validator
Validate material sample annotations and data structures against ontology constraints. Use when checking if CMSO annotations are correct, verifying that required properties are present, or validating that object property relationships have consistent domain and range. Catches unknown classes, unknown properties, domain mismatches, and missing required fields.
npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill ontology-validator --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Ontology Validator ## Goal Validate that material sample annotations comply with ontology constraints: correct class names, valid properties, consistent domain/range relationships, and required fields present. ## Requirements - Python 3.8+ - No external dependencies (Python standard library only) - Requires ontology-explorer's `cmso_summary.json` and `ontology_registry.json` ## Inputs to Gather | Input | Description | Example | |-------|-------------|---------| | Annotation | JSON dict or list of annotation dicts | `{"class":"UnitCell","properties":{"has Bravais lattice":"cF"}}` | | Class name | Class to check completeness for | `Crystal Structure` | | Provided properties | Comma-separated property names | `"has unit cell,has space group"` | | Relationships | JSON array of subject-property-object triples | `[{"subject_class":"Material","property":"has structure","object_class":"Crystal Structure"}]` | ## Decision Guidance ``` What do you need to validate? ├── An annotation (classes and properties are correct) │ └── schema_checker.py --ontology cmso --annotation '<json>' ├── Completeness of a class annotation │ └── completeness_checker.py --ontology cmso --class <name> --provided
- Goal
- Requirements
- Inputs to Gather
- Decision Guidance
- Script Outputs (JSON Fields)
- Workflow
- Conversational Workflow Example
- CLI Examples
- Error Handling
- Interpretation Guidance
- Limitations
- References
- Version History
Validate an annotation python3 skills/ontology/ontology-validator/scripts/schema_checker.py \ Check completeness python3 skills/ontology/ontology-validator/scripts/completeness_checker.py \ Validate relationships python3 skills/ontology/ontology-validator/scripts/relationship_checker.py \
What does the ontology-validator skill do?
Validate material sample annotations and data structures against ontology constraints. Use when checking if CMSO annotations are correct, verifying that required properties are present, or validating that object property relationships have consistent domain and range. Catches unknown classes, unknown properties, domain mismatches, and missing required fields.
How do I install it?
Run `npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill ontology-validator --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From FreedomIntelligence/OpenClaw-Medical-Skills, a repository with 2,909 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
