How ontotext-ad/graphwise-reactodia works
Graphwise Reactodia is a Stencil wrapper around the Reactodia graph explorer. A host configures the component and may seed it; users search or explore a graph, then import, export, and persist diagrams. The wrapper also exposes UI configuration, resource links, localization, and host events. The workflow and capabilities below follow the README and the sampled service/app references; some UI internals are unsampled, so their links are shown only where documentation supports them.
Main entry points: reactodia-app.ts Reactodia app · event.service.ts Host event service · diagram-storage.service.ts Diagram persistence · graphwise-reactodia.tsx Graphwise element
Components 21
Component and setup
- Graphwise element
src/components/graphwise-reactodia/graphwise-reactodia.tsx - Reactodia app
src/components/graphwise-reactodia/reactodia-app.ts - App configuration
src/components/graphwise-reactodia/models/reactodia-config.ts - UI configuration
src/components/graphwise-reactodia/ui-config/ui-config-mapper.ts
Graph exploration
- Menu actions
src/components/graphwise-reactodia/menu/graphwise-menu.ts - Node actions
src/components/graphwise-reactodia/node-action/node-actions.ts - SPARQL data access
src/components/graphwise-reactodia/models/sparql/sparql-query-function.ts - Canvas seeding
src/components/graphwise-reactodia/reactodia-app.ts - Resource links
src/components/graphwise-reactodia/models/resource-link/resource-link-url-function.ts
Diagram lifecycle
- Diagram operations
src/components/graphwise-reactodia/services/diagram/diagram.service.ts - Diagram file import/export
src/components/graphwise-reactodia/services/diagram-file/diagram-file.service.ts - Diagram persistence
src/components/graphwise-reactodia/services/diagram-storage/diagram-storage.service.ts
Host integration
- Host event service
src/components/graphwise-reactodia/services/event/event.service.ts - Error reporting
src/components/graphwise-reactodia/services/error/error.service.ts - Translations
src/components/graphwise-reactodia/i18n/translations.ts - Type styling
src/components/graphwise-reactodia/styles/type-style.resolver.ts - Window access
src/components/graphwise-reactodia/services/window/window.service.ts
Other components
- Host application
- Graph user
- SPARQL endpoint
- Browser local storage
Connections 26
- Host application → Graphwise element: configures
- Graph user → Graphwise element: uses
- Graphwise element → Reactodia app: hosts
- Reactodia app → App configuration: reads
src/components/graphwise-reactodia/reactodia-app.ts - Host application → SPARQL data access: provides query
- Reactodia app → Canvas seeding: seeds canvas
src/components/graphwise-reactodia/reactodia-app.ts - Canvas seeding → SPARQL data access: requests data
- SPARQL data access → SPARQL endpoint: queries
- Host application → Resource links: configures links
- Graph user → Menu actions: chooses actions
- Graph user → Node actions: acts on nodes
- Reactodia app → UI configuration: maps configuration
src/components/graphwise-reactodia/reactodia-app.ts - Graph user → Diagram operations: edits graph
- Diagram operations → Diagram persistence: persists changes
- Diagram persistence → Browser local storage: reads and writes
src/components/graphwise-reactodia/services/diagram-storage/diagram-storage.service.ts - Host application → Diagram persistence: clears state
- Graph user → Diagram file import/export: imports or exports
- Diagram file import/export → Diagram operations: imports layout
src/components/graphwise-reactodia/services/diagram/diagram.service.ts - Reactodia app → Host event service: emits events
src/components/graphwise-reactodia/reactodia-app.ts - Error reporting → Host event service: emits errors
src/components/graphwise-reactodia/services/error/error.service.ts - Host event service → Host application: notifies
- Host application → Host event service: sends clear command
src/components/graphwise-reactodia/services/event/event.service.ts - Reactodia app → Translations: loads language
src/components/graphwise-reactodia/reactodia-app.ts - Reactodia app → Type styling: resolves styles
src/components/graphwise-reactodia/reactodia-app.ts - Diagram persistence → Window access: gets storage
src/components/graphwise-reactodia/services/diagram-storage/diagram-storage.service.ts - Host event service → Window access: registers listener
src/components/graphwise-reactodia/services/event/event.service.ts