Parse, navigate, and query materials science ontology structures — browse class hierarchies, inspect individual classes and their properties, look up object and data property definitions with domain/range, search for ontology terms by keyword, and parse or summarize raw OWL/XML files. Currently supports CMSO and ASMO; the broader OCDO ecosystem (CDCO, PODO, PLDO, LDO) is planned. Use when exploring what classes or properties an ontology provides, finding the right CMSO term for a crystal structure or simulation concept, understanding parent-child class relationships, or onboarding to an unfamiliar materials ontology, even if the user only says "what ontology terms describe my FCC copper simulation" or "show me the CMSO class hierarchy."
Enable an agent to understand, navigate, and query the structure of materials science ontologies without loading verbose OWL/XML files directly. Provides fast access to class hierarchies, property definitions, and domain-range relationships through pre-processed JSON summaries.
Requirements
Python 3.10+
No external dependencies (Python standard library only)
Internet access required only for owl_parser.py and ontology_summarizer.py when fetching remote OWL files
Inputs to Gather
Input
Description
Example
Ontology name
Registered ontology to query
cmso
Class name
A specific class to inspect
Material, UnitCell
Property name
A specific property to look up
hasMaterial, hasSpaceGroupNumber
Search term
Keyword to search across labels
crystal, lattice
OWL source
Path or URL to an OWL/XML file (for parsing/summarizing)
Identify which ontology the user is working with (default: CMSO).
Use class_browser.py --list-roots to see the top-level concepts.
Drill into specific classes with class_browser.py --class <name> to see hierarchy, children, and applicable properties.
Look up individual properties with property_lookup.py --property <name>.
If the user mentions a concept but not its ontology name, use --search to find matching classes or properties.
For a new or updated ontology, run owl_parser.py to parse the raw OWL, then ontology_summarizer.py to generate a summary JSON.
Conversational Workflow Example
User: I have an FCC copper simulation. What CMSO classes should I use to describe it?
Agent: Let me explore the CMSO ontology to find the relevant classes. I'll run
a few targeted searches and property lookups (the answer below is synthesized
from several commands, per the Workflow section).
[Runs: class_browser.py --ontology cmso --search "crystal" --json]
→ Crystalline Material, Crystal Structure (among others)
[Runs: class_browser.py --ontology cmso --search "sample" --json]
→ Computational Sample, Atomic Scale Sample
[Runs: class_browser.py --ontology cmso --search "unit cell" --json]
→ Unit Cell
[Runs: class_browser.py --ontology cmso --search "space group" --json]
→ Space Group
[Runs: class_browser.py --ontology cmso --search "element" --json]
→ Chemical Element
[Runs: property_lookup.py --ontology cmso --property "has material" --json]
→ domain Computational Sample → range Material
[Runs: property_lookup.py --ontology cmso --property "has structure" --json]
→ domain Material → range Structure
[Runs: property_lookup.py --ontology cmso --property "has unit cell" --json]
→ domain Crystal Structure → range Unit Cell
For an FCC copper simulation, the relevant CMSO classes are:
- **Computational Sample** → **Atomic Scale Sample**: your simulation is an atomic-scale sample
- **Material** → **Crystalline Material**: copper is crystalline
- **Crystal Structure**: describes the FCC arrangement
- **Unit Cell**: the repeating FCC unit cell (a=b=c=3.615 Å, α=β=γ=90°)
- **Space Group**: FCC copper is space group 225 (Fm-3m)
- **Chemical Element**: Cu
The key relationship chain (from the property domains/ranges above):
Computational Sample → has material → Material → has structure → Structure
→ (Crystal Structure) → has unit cell → Unit Cell
Shall I look up the specific properties for any of these classes?
CLI Examples
# List root classes in CMSO
python3 skills/ontology/ontology-explorer/scripts/class_browser.py \
--ontology cmso --list-roots --json
# Inspect the Material class hierarchy
python3 skills/ontology/ontology-explorer/scripts/class_browser.py \
--ontology cmso --class Material --json
# Search for crystal-related classes
python3 skills/ontology/ontology-explorer/scripts/class_browser.py \
--ontology cmso --search crystal --json
# Find all properties for UnitCell
python3 skills/ontology/ontology-explorer/scripts/property_lookup.py \
--ontology cmso --class UnitCell --json
# Look up a specific property
python3 skills/ontology/ontology-explorer/scripts/property_lookup.py \
--ontology cmso --property "has space group" --json
# Parse a remote OWL file
python3 skills/ontology/ontology-explorer/scripts/owl_parser.py \
--source https://raw.githubusercontent.com/OCDO/cmso/main/cmso.owl --json
# Generate a summary JSON from an OWL file
python3 skills/ontology/ontology-explorer/scripts/ontology_summarizer.py \
--source https://raw.githubusercontent.com/OCDO/cmso/main/cmso.owl \
--output summary.json --json
Error Handling
Error
Cause
Resolution
Ontology 'X' not in registry
Ontology name not registered
Check references/ontology_registry.json for available names
Class 'X' not found
Class label doesn't match any entry
Use --search to find similar names, or --list-roots to see available classes
Property 'X' not found
Property label doesn't match
Use --search to find similar properties
Cannot parse OWL source
Invalid XML or unreachable URL
Check file path or URL; ensure the file is valid OWL/XML
Summary file not found
Summary JSON hasn't been generated
Run ontology_summarizer.py first
Interpretation Guidance
Class hierarchy: root classes are the broadest concepts; leaf classes are the most specific. A class inherits all properties from its ancestors.
Object properties: show how classes relate to each other (domain → range). A property with domain UnitCell and range Basis means a unit cell has a basis.
Data properties: show what literal values a class carries. A property with domain ChemicalElement and range xsd:string means an element has a string-valued attribute.
Union domains: a property can apply to more than one class. When it does, the domain is shown as the classes joined with a pipe, e.g. A | B. (The bundled CMSO/ASMO summaries currently contain no union-domain properties.)
Before presenting any class, property, or relationship as fact, confirm and record:
Resolved the target via class_browser.py --class <name> (or property_lookup.py) and recorded the exact canonical label returned in results.class_info.label / results.property_info.name — do not quote a name the agent typed; quote the label the tool resolved (e.g. UnitCell → Unit Cell).
For every relationship chain stated, cited the actual domain and range from a property_lookup.py --property <name> call (recorded results.property_info.domain and .range), rather than inferring the link from class names.
When a property's domain contains a pipe (A | B), reported it as a union (applies to each listed class) and confirmed the class in question matches one normalized member — did not silently assume single-class domain.
For --search results, recorded each match's relevance and stated whether it was a label match (1.0) or description-only match (0.5); did not present a 0.5 description hit as a confirmed term match.
Identified the ontology by its registry key (cmso or asmo) and confirmed it exists in references/ontology_registry.json; did not query an unregistered ontology or conflate CMSO and ASMO terms.
When relying on a generated/refreshed summary, recorded its metadata.source_url and metadata.generated_at and the statistics (num_classes, num_object_properties, num_data_properties) so the result is traceable to a specific OWL source.
Treated absent parents, descriptions, or domain/range as missing data (not as "no such relationship"), since the parser extracts only simple rdfs:subClassOf and declared domains/ranges and does no reasoning.
Common pitfalls & rationalizations
Tempting shortcut
Why it's wrong / what to do
"The class name UnitCell returned nothing, so the term doesn't exist."
Labels carry spaces (Unit Cell). The tools resolve exact → case-insensitive → space-normalized; if a direct guess fails, run --search and use the canonical label the tool returns, not the typed string.
"These two classes are obviously related, so I'll state the link."
Relationships exist only where an object property declares them. Verify with property_lookup.py --property <name> and quote the recorded domain → range; never infer a triple from class names alone.
"The script ran and printed results, so the answer is complete."
Run success ≠ completeness. A missing parent, description, or domain/range means the OWL lacked that annotation — the parser does no inference and ignores complex OWL restrictions. State what is absent.
"--search crystal matched it, so it's the right term."
A match may be relevance 0.5 (description-only), not a label match. Check the relevance field and prefer 1.0 label matches; report 0.5 hits as "mentioned in the description," not as the canonical term.
"A property has one domain class."
Domains can be unions (`A
"Any OCDO ontology will work / CMSO and ASMO are interchangeable."
Only cmso and asmo are registered; CDCO/PODO/PLDO/LDO are planned, not available. Pick the correct registry key and don't mix terms across ontologies.
"I'll point the parser at this http:// OWL URL."
owl_parser.py/ontology_summarizer.py reject non-https:// URLs by design. Use an https:// source or a local file path.
Security
Input Validation
--ontology is validated against registered ontology names in ontology_registry.json (fixed allowlist)
--class and --property names are validated against a safe-character pattern to prevent injection
--search terms are length-limited and used only for substring matching against pre-processed labels (never interpolated into queries or code)
--source for owl_parser.py accepts file paths or URLs; URLs are validated against https:// scheme only
File Access
class_browser.py and property_lookup.py read pre-processed JSON summary files from the references/ directory (read-only)
owl_parser.py reads a single OWL/XML file from a local path or HTTPS URL; remote fetches have a 30-second timeout
ontology_summarizer.py writes a single JSON summary file to the path specified by --output
No scripts modify or delete existing files
Tool Restrictions
Read: Used to inspect script source, reference files, and ontology summaries
Bash: Used to execute the four Python scripts (owl_parser.py, ontology_summarizer.py, class_browser.py, property_lookup.py) with explicit argument lists; URL fetching is contained within the Python scripts with timeout limits
Safety Measures
No eval(), exec(), or dynamic code generation
All subprocess calls use explicit argument lists (no shell=True)
OWL/XML parsing uses Python's xml.etree.ElementTree which does not resolve external entities by default, mitigating XXE attacks
Remote URL fetching is limited to HTTPS with a 30-second timeout to prevent abuse
Search results are capped in count to prevent output flooding
Limitations
Only supports OWL/XML format (not Turtle, JSON-LD, or N-Triples)
Does not support OWL reasoning or inference (e.g., does not compute transitive closures)
Class hierarchy extraction handles simple rdfs:subClassOf only (not complex OWL restrictions)
Descriptions may be missing for classes that lack rdfs:comment, skos:definition, or IAO annotations
URL fetching requires internet access and may time out (30-second limit)
References
OWL/RDF Primer — brief introduction to OWL concepts
CMSO Guide — narrative guide to the CMSO ontology
Ontology Registry — registered ontologies and their metadata
Added a Verification checklist (evidence-based, tied to canonical-label resolution, recorded domain/range, union domains, search relevance, registry keys, and summary provenance) and a Common pitfalls & rationalizations table.
2026-06-23
1.2.0
Fixed property_lookup --class to resolve canonical labels (spaceless names like UnitCell now match), made class/property domain matching consistent across tools, enforced documented security controls (safe-character pattern, length caps, search-result caps, HTTPS-only URLs), corrected union-domain doc example and eval assertions, scoped description to CMSO/ASMO.
2026-02-25
1.0
Initial release with CMSO support
1---2name: ontology-explorer3description: Parse, navigate, and query materials science ontology structures — browse class hierarchies, inspect individual classes and their properties, look up object and data property definitions with domain/range, search for ontology terms by keyword, and parse or summarize raw OWL/XML files. Currently supports CMSO and ASMO; the broader OCDO ecosystem (CDCO, PODO, PLDO, LDO) is planned. Use when exploring what classes or properties an ontology provides, finding the right CMSO term for a crystal structure or simulation concept, understanding parent-child class relationships, or onboarding to an unfamiliar materials ontology, even if the user only says "what ontology terms describe my FCC copper simulation" or "show me the CMSO class hierarchy."4---56# Ontology Explorer78## Goal910Enable an agent to understand, navigate, and query the structure of materials science ontologies without loading verbose OWL/XML files directly. Provides fast access to class hierarchies, property definitions, and domain-range relationships through pre-processed JSON summaries.1112## Requirements1314- Python 3.10+15- No external dependencies (Python standard library only)16- Internet access required only for `owl_parser.py` and `ontology_summarizer.py` when fetching remote OWL files1718## Inputs to Gather1920| Input | Description | Example |21|-------|-------------|---------|22| Ontology name | Registered ontology to query | `cmso` |23| Class name | A specific class to inspect | `Material`, `UnitCell` |24| Property name | A specific property to look up | `hasMaterial`, `hasSpaceGroupNumber` |25| Search term | Keyword to search across labels | `crystal`, `lattice` |26| OWL source | Path or URL to an OWL/XML file (for parsing/summarizing) | `https://raw.githubusercontent.com/OCDO/cmso/main/cmso.owl` |2728## Decision Guidance2930```31What do you need?32├── Understand overall ontology structure33│ └── class_browser.py --ontology cmso --list-roots34├── Inspect a specific class35│ └── class_browser.py --ontology cmso --class <name>36├── Find properties for a class37│ └── property_lookup.py --ontology cmso --class <name>38├── Look up a specific property39│ └── property_lookup.py --ontology cmso --property <name>40├── Search for a concept41│ ├── class_browser.py --ontology cmso --search <term>42│ └── property_lookup.py --ontology cmso --search <term>43├── Parse a new/updated OWL file44│ └── owl_parser.py --source <path-or-url>45└── Generate/refresh a summary JSON46 └── ontology_summarizer.py --source <url> --output <path>47```4849## Script Outputs (JSON Fields)5051| Script | Key Outputs |52|--------|-------------|53| `scripts/owl_parser.py` | `results.metadata`, `results.classes`, `results.object_properties`, `results.data_properties`, `results.class_hierarchy` |54| `scripts/ontology_summarizer.py` | `results.output_file`, `results.statistics` |55| `scripts/class_browser.py` | `results.class_info`, `results.subtree`, `results.properties`, `results.path_to_root`, `results.roots`, `results.search_results` |56| `scripts/property_lookup.py` | `results.property_info`, `results.class_properties`, `results.search_results` |5758## Workflow59601. Identify which ontology the user is working with (default: CMSO).612. Use `class_browser.py --list-roots` to see the top-level concepts.623. Drill into specific classes with `class_browser.py --class <name>` to see hierarchy, children, and applicable properties.634. Look up individual properties with `property_lookup.py --property <name>`.645. If the user mentions a concept but not its ontology name, use `--search` to find matching classes or properties.656. For a new or updated ontology, run `owl_parser.py` to parse the raw OWL, then `ontology_summarizer.py` to generate a summary JSON.6667## Conversational Workflow Example6869```70User: I have an FCC copper simulation. What CMSO classes should I use to describe it?7172Agent: Let me explore the CMSO ontology to find the relevant classes. I'll run73a few targeted searches and property lookups (the answer below is synthesized74from several commands, per the Workflow section).7576[Runs: class_browser.py --ontology cmso --search "crystal" --json]77 → Crystalline Material, Crystal Structure (among others)78[Runs: class_browser.py --ontology cmso --search "sample" --json]79 → Computational Sample, Atomic Scale Sample80[Runs: class_browser.py --ontology cmso --search "unit cell" --json]81 → Unit Cell82[Runs: class_browser.py --ontology cmso --search "space group" --json]83 → Space Group84[Runs: class_browser.py --ontology cmso --search "element" --json]85 → Chemical Element86[Runs: property_lookup.py --ontology cmso --property "has material" --json]87 → domain Computational Sample → range Material88[Runs: property_lookup.py --ontology cmso --property "has structure" --json]89 → domain Material → range Structure90[Runs: property_lookup.py --ontology cmso --property "has unit cell" --json]91 → domain Crystal Structure → range Unit Cell9293For an FCC copper simulation, the relevant CMSO classes are:9495- **Computational Sample** → **Atomic Scale Sample**: your simulation is an atomic-scale sample96- **Material** → **Crystalline Material**: copper is crystalline97- **Crystal Structure**: describes the FCC arrangement98- **Unit Cell**: the repeating FCC unit cell (a=b=c=3.615 Å, α=β=γ=90°)99- **Space Group**: FCC copper is space group 225 (Fm-3m)100- **Chemical Element**: Cu101102The key relationship chain (from the property domains/ranges above):103 Computational Sample → has material → Material → has structure → Structure104 → (Crystal Structure) → has unit cell → Unit Cell105106Shall I look up the specific properties for any of these classes?107```108109## CLI Examples110111```bash112# List root classes in CMSO113python3 skills/ontology/ontology-explorer/scripts/class_browser.py \114 --ontology cmso --list-roots --json115116# Inspect the Material class hierarchy117python3 skills/ontology/ontology-explorer/scripts/class_browser.py \118 --ontology cmso --class Material --json119120# Search for crystal-related classes121python3 skills/ontology/ontology-explorer/scripts/class_browser.py \122 --ontology cmso --search crystal --json123124# Find all properties for UnitCell125python3 skills/ontology/ontology-explorer/scripts/property_lookup.py \126 --ontology cmso --class UnitCell --json127128# Look up a specific property129python3 skills/ontology/ontology-explorer/scripts/property_lookup.py \130 --ontology cmso --property "has space group" --json131132# Parse a remote OWL file133python3 skills/ontology/ontology-explorer/scripts/owl_parser.py \134 --source https://raw.githubusercontent.com/OCDO/cmso/main/cmso.owl --json135136# Generate a summary JSON from an OWL file137python3 skills/ontology/ontology-explorer/scripts/ontology_summarizer.py \138 --source https://raw.githubusercontent.com/OCDO/cmso/main/cmso.owl \139 --output summary.json --json140```141142## Error Handling143144| Error | Cause | Resolution |145|-------|-------|------------|146| `Ontology 'X' not in registry` | Ontology name not registered | Check `references/ontology_registry.json` for available names |147| `Class 'X' not found` | Class label doesn't match any entry | Use `--search` to find similar names, or `--list-roots` to see available classes |148| `Property 'X' not found` | Property label doesn't match | Use `--search` to find similar properties |149| `Cannot parse OWL source` | Invalid XML or unreachable URL | Check file path or URL; ensure the file is valid OWL/XML |150| `Summary file not found` | Summary JSON hasn't been generated | Run `ontology_summarizer.py` first |151152## Interpretation Guidance153154- **Class hierarchy**: root classes are the broadest concepts; leaf classes are the most specific. A class inherits all properties from its ancestors.155- **Object properties**: show how classes relate to each other (domain → range). A property with domain `UnitCell` and range `Basis` means a unit cell *has a* basis.156- **Data properties**: show what literal values a class carries. A property with domain `ChemicalElement` and range `xsd:string` means an element has a string-valued attribute.157- **Union domains**: a property can apply to more than one class. When it does, the domain is shown as the classes joined with a pipe, e.g. `A | B`. (The bundled CMSO/ASMO summaries currently contain no union-domain properties.)158- **Search relevance**: 1.0 = label match, 0.5 = description match only.159160## Verification checklist161162Before presenting any class, property, or relationship as fact, confirm and record:163164- [ ] Resolved the target via `class_browser.py --class <name>` (or `property_lookup.py`) and recorded the exact canonical `label` returned in `results.class_info.label` / `results.property_info.name` — do not quote a name the agent typed; quote the label the tool resolved (e.g. `UnitCell` → `Unit Cell`).165- [ ] For every relationship chain stated, cited the actual `domain` and `range` from a `property_lookup.py --property <name>` call (recorded `results.property_info.domain` and `.range`), rather than inferring the link from class names.166- [ ] When a property's `domain` contains a pipe (`A | B`), reported it as a union (applies to each listed class) and confirmed the class in question matches one normalized member — did not silently assume single-class domain.167- [ ] For `--search` results, recorded each match's `relevance` and stated whether it was a label match (1.0) or description-only match (0.5); did not present a 0.5 description hit as a confirmed term match.168- [ ] Identified the ontology by its registry key (`cmso` or `asmo`) and confirmed it exists in `references/ontology_registry.json`; did not query an unregistered ontology or conflate CMSO and ASMO terms.169- [ ] When relying on a generated/refreshed summary, recorded its `metadata.source_url` and `metadata.generated_at` and the `statistics` (`num_classes`, `num_object_properties`, `num_data_properties`) so the result is traceable to a specific OWL source.170- [ ] Treated absent parents, descriptions, or domain/range as missing data (not as "no such relationship"), since the parser extracts only simple `rdfs:subClassOf` and declared domains/ranges and does no reasoning.171172## Common pitfalls & rationalizations173174| Tempting shortcut | Why it's wrong / what to do |175|-------------------|-----------------------------|176| "The class name `UnitCell` returned nothing, so the term doesn't exist." | Labels carry spaces (`Unit Cell`). The tools resolve exact → case-insensitive → space-normalized; if a direct guess fails, run `--search` and use the canonical `label` the tool returns, not the typed string. |177| "These two classes are obviously related, so I'll state the link." | Relationships exist only where an object property declares them. Verify with `property_lookup.py --property <name>` and quote the recorded `domain → range`; never infer a triple from class names alone. |178| "The script ran and printed results, so the answer is complete." | Run success ≠ completeness. A missing `parent`, `description`, or `domain/range` means the OWL lacked that annotation — the parser does no inference and ignores complex OWL restrictions. State what is absent. |179| "`--search crystal` matched it, so it's the right term." | A match may be relevance 0.5 (description-only), not a label match. Check the `relevance` field and prefer 1.0 label matches; report 0.5 hits as "mentioned in the description," not as the canonical term. |180| "A property has one domain class." | Domains can be unions (`A | B`). Split on `|` and check each normalized member; a property may legitimately apply to several classes. The bundled CMSO/ASMO summaries currently have none, but parsed/refreshed ones can. |181| "Any OCDO ontology will work / CMSO and ASMO are interchangeable." | Only `cmso` and `asmo` are registered; CDCO/PODO/PLDO/LDO are planned, not available. Pick the correct registry key and don't mix terms across ontologies. |182| "I'll point the parser at this `http://` OWL URL." | `owl_parser.py`/`ontology_summarizer.py` reject non-`https://` URLs by design. Use an `https://` source or a local file path. |183184## Security185186### Input Validation187- `--ontology` is validated against registered ontology names in `ontology_registry.json` (fixed allowlist)188- `--class` and `--property` names are validated against a safe-character pattern to prevent injection189- `--search` terms are length-limited and used only for substring matching against pre-processed labels (never interpolated into queries or code)190- `--source` for `owl_parser.py` accepts file paths or URLs; URLs are validated against `https://` scheme only191192### File Access193- `class_browser.py` and `property_lookup.py` read pre-processed JSON summary files from the `references/` directory (read-only)194- `owl_parser.py` reads a single OWL/XML file from a local path or HTTPS URL; remote fetches have a 30-second timeout195- `ontology_summarizer.py` writes a single JSON summary file to the path specified by `--output`196- No scripts modify or delete existing files197198### Tool Restrictions199- **Read**: Used to inspect script source, reference files, and ontology summaries200- **Bash**: Used to execute the four Python scripts (`owl_parser.py`, `ontology_summarizer.py`, `class_browser.py`, `property_lookup.py`) with explicit argument lists; URL fetching is contained within the Python scripts with timeout limits201202### Safety Measures203- No `eval()`, `exec()`, or dynamic code generation204- All subprocess calls use explicit argument lists (no `shell=True`)205- OWL/XML parsing uses Python's `xml.etree.ElementTree` which does not resolve external entities by default, mitigating XXE attacks206- Remote URL fetching is limited to HTTPS with a 30-second timeout to prevent abuse207- Search results are capped in count to prevent output flooding208209## Limitations210211- Only supports OWL/XML format (not Turtle, JSON-LD, or N-Triples)212- Does not support OWL reasoning or inference (e.g., does not compute transitive closures)213- Class hierarchy extraction handles simple `rdfs:subClassOf` only (not complex OWL restrictions)214- Descriptions may be missing for classes that lack `rdfs:comment`, `skos:definition`, or IAO annotations215- URL fetching requires internet access and may time out (30-second limit)216217## References218219- [OWL/RDF Primer](references/owl_primer.md) — brief introduction to OWL concepts220- [CMSO Guide](references/cmso_guide.md) — narrative guide to the CMSO ontology221- [Ontology Registry](references/ontology_registry.json) — registered ontologies and their metadata222- [CMSO Summary](references/cmso_summary.json) — pre-processed CMSO structure223- [CMSO Documentation](https://ocdo.github.io/cmso/) — official CMSO docs224- [CMSO Repository](https://github.com/OCDO/cmso) — source OWL file and development225226## Version History227228| Date | Version | Changes |229|------|---------|---------|230| 2026-06-24 | 1.2.2 | Added a Verification checklist (evidence-based, tied to canonical-label resolution, recorded domain/range, union domains, search relevance, registry keys, and summary provenance) and a Common pitfalls & rationalizations table. |231| 2026-06-23 | 1.2.0 | Fixed property_lookup `--class` to resolve canonical labels (spaceless names like `UnitCell` now match), made class/property domain matching consistent across tools, enforced documented security controls (safe-character pattern, length caps, search-result caps, HTTPS-only URLs), corrected union-domain doc example and eval assertions, scoped description to CMSO/ASMO. |232| 2026-02-25 | 1.0 | Initial release with CMSO support |
Run npx skillmds@latest add heshamfs/ontology-explorer in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Parse, navigate, and query materials science ontology structures — browse class hierarchies, inspect individual classes and their properties, look up object and data property definitions with domain/range, search for ontology terms by keyword, and parse or summarize raw OWL/XML files. Currently supports CMSO and ASMO; the broader OCDO ecosystem (CDCO, PODO, PLDO, LDO) is planned. Use when exploring what classes or properties an ontology provides, finding the right CMSO term for a crystal structure or simulation concept, understanding parent-child class relationships, or onboarding to an unfamiliar materials ontology, even if the user only says "what ontology terms describe my FCC copper simulation" or "show me the CMSO class hierarchy." It is listed under Research & Search on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: executes scripts, makes network calls. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
HeshamFS (@heshamfs) published this skill. Their other Agent Skills are listed on their SkillMD profile.