RDFArchitect is a web-based tool for visualizing, editing, and sharing RDFS schemas with CIM extensions - as used in CGMES and the ENTSO-e network code profiles — along with their SHACL constraints. It is an open source alternative to proprietary CIM/RDF modeling tools. Overview RDFArchitect combines a Java/Spring backend and a Svelte frontend to provide a practical modeling workflow for CIM-based RDF schemas. The…
RDFArchitect is a web-based tool for visualizing, editing, and sharing RDFS schemas with CIM extensions - as used in CGMES and the ENTSO-e network code profiles — along with their SHACL constraints.
RDFArchitect is a web-based tool for visualizing, editing, and sharing RDFS schemas with CIM extensions - as used in CGMES and the ENTSO-e network code profiles — along with their SHACL constraints.
It is an open source alternative to proprietary CIM/RDF modeling tools.
Overview
RDFArchitect combines a Java/Spring backend and a Svelte frontend to provide a practical modeling workflow for CIM-based RDF schemas. The application supports importing, editing, sharing, comparing, validating, and exporting schemas with an interactive UI.
Diagrams can be easily shared as a complete, browsable reference of classes, relations, attributes, enumerations, notes, and SHACL shapes - no modeling tool or download required.
Screenshots
The main editor combines schema navigation, package-focused diagram rendering, and context-sensitive actions for importing, versioning, and validation.
Class editing stays close to the model: labels, packages, inheritance, attributes, associations, enum entries, comments, and class-specific SHACL constraints are all available from the same workspace.
RDFArchitect also supports release workflows such as schema comparison, change review, and SHACL inspection without leaving the application.
For the complete documentation, see the docs site.
Key Features
Import and export RDF schemas and CIM extensions
Visualize class structures via UML diagrams
Create custom diagrams containing classes from different packages or even profiles
Merge View — Visualize and inspect classes from multiple profiles across a dataset in a single unified diagram
Edit classes, attributes, associations, enum entries, and notes
Share diagrams as a complete, read-friendly reference of classes, relations, notes, and constraints
Schema migration between CIM versions and extensions
Compare schemas and inspect change history
Comprehensive SHACL support:
Generate SHACL rules covering everything in the schema
Import and manage custom SHACL shapes
Inspect shapes in context - directly on their target classes and properties
Architecture
Backend: Spring Boot service in backend/ (default runtime port 8080)
Frontend: SvelteKit app in frontend/ (dev server on 1407)
Gateway (local Docker): Nginx proxy in docker/docker-compose.yaml exposed on 3000
/ routes to frontend
/api routes to backend
External Data
This repository includes the ENTSO-E application-profiles-library as a git submodule under external/entsoe-application-profiles-library. It provides the official RDFS / SHACL artifacts for CGMES and NC profiles, and is used by backend tests as realistic input data. The library is published by ENTSO-E under the Apache License 2.0 (see external/entsoe-application-profiles-library/LICENSE.txt and NOTICE.txt).
When cloning this repository, initialize the submodule with:
git submodule update --init --recursive
Prerequisites
Java 25 or higher
Maven 3.9.9 or higher
Node.js 24 or higher
npm 11 or higher
Docker and Docker Compose (optional, for containerized local setup)
Quickstart
Run Locally (Dev)
Start backend:
cd backend
mvn spring-boot:run
Start frontend in a separate terminal:
cd frontend
npm install
npm run api:generate # required: generates the typed API client
npm run dev
npm run api:generate writes the typed backend client to frontend/src/lib/api/generated.
That directory is git-ignored, so it does not exist in a fresh checkout and the frontend
cannot be run, built, or bundled without generating it first. Rerun it whenever
frontend/openapi.json changes. See Generated frontend API client.
In container deployments, this is injected via frontend/docker-entrypoint.sh
API Documentation
When the backend is running, Swagger UI is available at:
http://localhost:8080/swagger-ui.html
Generated frontend API client
The frontend calls the backend through a typed client generated by
@hey-api/openapi-ts from the backend’s OpenAPI spec. To keep CI and
Docker builds independent of a running backend, the spec is committed as a contract at
frontend/openapi.json and the client (frontend/src/lib/api/generated, git-ignored) is
generated from it:
cd frontend
npm run api:generate # writes src/lib/api/generated from ./openapi.json
The generated directory is git-ignored, so this step is mandatory after cloning and after
every npm run clean-install, and it has to be repeated whenever frontend/openapi.json
changes. A stale or missing client typically surfaces as a build error such as
[MISSING_EXPORT] "createDataset" is not exported by "src/lib/api/generated/index.ts".
When backend routes or DTOs change, regenerate and commit the contract from the backend module:
cd backend
mvn exec:java@export-openapi
# writes ../frontend/openapi.json - commit the result
Backend CI runs the same export and fails if frontend/openapi.json is out of date, so the
committed contract can never drift from the controllers.
Development Workflows
Backend
cd backend
mvn -B spotless:apply
mvn -B -Plint -DskipTests verify
mvn -B test
mvn -B verify
Frontend
cd frontend
npm run clean-install
npm run api:generate
npm run test
npm run lint
npm run build
Pre-commit Hooks
After installing pre-commit, enable the repo-local hooks with:
pre-commit install
Backend hooks run for staged backend changes. Frontend hooks run for staged frontend changes.
Hooks call mvn and npm directly. Make sure mvn, npm, and pre-commit are available on PATH.
Contributing
Please see CONTRIBUTING.md for development and pull request guidelines.
Security
Please see SECURITY.md for responsible vulnerability reporting.
Support
Please see SUPPORT.md for usage help, issue routing, and support options.
评论