This is a simple tool to Visualize RDF and provides the ability to Search and Navigate through the graph. This repository contains two primary distribution targets built from a shared core:
- The standalone Web Application https://sketch.zazuko.com
- The VS Code Extension Visual Studio Code Marketplace.
The repository is structured as a monorepo using NPM Workspaces to share code cleanly between the web and VS Code environments.
packages/core-ui: The shared Vue.js components (GraphView,RdfEditor,SPOSearch), RDF parsers, and configuration.packages/web-app: The standalone browser application.packages/vscode-ui: The Vite compilation pipelines for the VS Code-specific UIs (Webview and Notebook Renderer).packages/vscode-ext: The backend VS Code Extension API logic wrapper that launches thevscode-uipanels.
At the root of the repository, install all dependencies and link the workspaces:
npm installStart the web application development server locally (runs packages/web-app):
npm run devBuild the web application for production:
npm run buildDeveloping the VS Code Extension involves building both the UI targets (vscode-ui) and the extension logic itself (vscode-ext). The package command handles this automatically.
To package the entire extension into a .vsix file:
npm run package --workspace=vscode-rdf-sketchIf you are actively developing the VS Code extension's UI components, you can run the localized dev server that mimics the VS Code Webview environment:
# Start the Webview UI dev server
npm run dev:vscodeYou can access the Vue.js app in the browser at http://localhost:5173/vscode/.
To test the extension within VS Code:
- Open the repository in VS Code.
- Navigate to the
packages/vscode-extdirectory sideways if necessary. - Press
F5to open the Extension Development Host window.