OWL/XML and RDF/XML workflow (read-only catalog)¶
Status: Shipped in v0.12.0 — browse and query in VS Code; no write-back to
.owlor.owxfiles.
OntoCore indexes RDF/XML (.owl) and OWL/XML (.owx) via Horned-OWL. The Entity Inspector shows entities from these files but marks them read-only (editable: false).
Canonical capability matrix: What ships today.
What works today¶
| Capability | .owl (RDF/XML) |
.owx (OWL/XML) |
|---|---|---|
| Workspace indexing | Yes | Yes |
| Explorer / SQL / SPARQL | Yes | Yes |
| Entity Inspector (view) | Yes | Yes |
| Entity Inspector (edit) | No | No |
Patch / ontocore patch write-back |
No | No |
| Manchester editor apply | No | No |
| Refactoring apply | No (Turtle only) | No |
Recommended workflows¶
Browse-only in place¶
Keep authoritative sources as .owl / .owx in the repo. Use OntoCode to browse, query, reason, and run semantic diff without editing those files.
Edit via Turtle or OBO¶
- Maintain editable copies as
.ttlor.oboin the same workspace (or a sibling package). - Use
owl:importsor catalog files so the index links related modules. - Apply patches and inspector edits on Turtle/OBO only — see Authoring.
Round-trip with Protégé or ROBOT¶
For teams that must publish RDF/XML or OWL/XML:
- Author in Turtle/OBO with OntoCode.
- Export or convert with ROBOT or Protégé before release.
- Re-index after conversion; treat XML as release artifacts, not the live edit surface.
Protégé coexistence patterns: Protégé coexistence.
VS Code behavior¶
- Open a workspace containing
.owlor.owxfiles. - Trust the workspace and run OntoCode: Index Workspace.
- Select an entity — the inspector shows axioms but edit controls are disabled.
- For edits, open the corresponding
.ttlor.obofile, or create one and link via imports.
CLI¶
ontocore validate /path/to/ontologies
ontocore query /path/to/ontologies "SELECT * FROM classes WHERE file_path LIKE '%.owl'"
ontocore classify /path/to/ontologies --profile el
Patch apply to .owl / .owx returns an unsupported format error — see Errors reference.
Migration from v0.11¶
v0.12 added Horned-OWL catalog support for OWL/XML and clarified RDF/XML read-only policy. See Migration v0.11 → v0.12.
Related¶
| Topic | Guide |
|---|---|
| Format policy | Authoring |
| OBO write-back | OBO authoring |
| Protégé gaps | Protégé decision guide |