Ontology Explorer
VS Code extension for visualizing RDF ontologies and DCAT catalogs with SHACL validation.
Publisher: RegexFlow
Action Required — Imre
Please publish v1.0.11 to the VS Code Marketplace.
cd ontology-explorer-vscode
npm install
vsce package
vsce publish
What's new in v1.0.11
- Fixed false-positive "missing labels" in quality report (was reporting 9 issues on KFV ontology, now correctly reports 1)
- Parser now collects
skos:prefLabel and skos:definition for label/description detection
- Quality check uses proper label array detection instead of URI fragment comparison
- Added CKAN keyword
- Legend toggles to show/hide node types
- Accessible shapes mode for colourblind users
- Improved colour differentiation for node types
Features
- Network View — Interactive D3 force-directed graph of classes, properties, and relationships
- Hierarchy View — Left-to-right tree layout showing class inheritance and structure
- SHACL Validation — Validate DCAT catalogs against DCAT-AP shapes
- Quality Analysis — Check for common issues (orphan nodes, missing labels, missing domains/ranges)
- Multi-language Labels — Switch between available label languages (e.g. EN, SV)
- Multiple RDF Formats — Turtle (.ttl), RDF/XML (.rdf, .owl), N-Triples (.nt), JSON-LD (.jsonld)
- Jump to Source — Click a node to navigate to its definition in the editor
Usage
- Open an RDF file (.ttl, .rdf, .owl, .nt, .jsonld)
- Right-click → "Open Ontology Explorer"
- Or use Command Palette:
Ontology Explorer: Open Viewer
SHACL Validation
- Open a DCAT catalog file
- Right-click → "Validate with SHACL (DCAT-AP)"
- Results appear in the viewer with violations highlighted
UI Layout
┌─────────────────────────────────────────────────┐
│ [Title] [Network|Hierarchy] [Check][SHACL]│ ← Toolbar
├─────────────────────────────────────────────────┤
│ ┌─────────┐ │
│ │ Legend │ Graph Area │
│ │ ─────── │ │
│ │ ● Class │ ●───● │
│ │ ● Prop │ ● ● │
│ └─────────┘ ●───● │
│ ┌───────────┐│
│ │Node Detail││
│ └───────────┘│
└─────────────────────────────────────────────────┘
- Network — Force-directed graph with drag, zoom, and connection highlighting
- Hierarchy — Tree layout showing subclass/instance relationships
- Check — Quality report (errors, warnings, suggestions)
- SHACL — SHACL validation results (appears after validation)
Updating DCAT-AP Shapes
See SHAPES-UPDATE.md in the extension directory for quarterly update instructions.
| |