# w3c/data-shapes architecture

> Architecture diagram of the GitHub repository w3c/data-shapes, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/w3c/data-shapes
- Repository: https://github.com/w3c/data-shapes

## Overview

This is the W3C Data Shapes Working Group’s specification workspace: its main product is a set of SHACL and SPARQL drafts, alongside earlier deliverables and test-suite material. The principal workflow is WG contributors developing specification drafts; the repository also includes a small maintenance-tool layer for checking and synchronizing examples. The README documents the deliverables, while sampled source shows the snippet tool’s parsing and formatting dependencies. Links between unsampled specification subsystems are omitted rather than inferred.

Main entry points: [`scripts/sync-code-snippets.js`](https://github.com/w3c/data-shapes/blob/gh-pages/scripts/sync-code-snippets.js) (Snippet Synchronizer), [`scripts/lib/utils.js`](https://github.com/w3c/data-shapes/blob/gh-pages/scripts/lib/utils.js) (RDF Parsers), [`scripts/check-language-tagged-strings.js`](https://github.com/w3c/data-shapes/blob/gh-pages/scripts/check-language-tagged-strings.js) (Language Tag Checker), [`shacl12-core/index.html`](https://github.com/w3c/data-shapes/blob/gh-pages/shacl12-core/index.html) (SHACL 1.2 Core)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_drafts["Current Drafts"]
  node_core["SHACL 1.2 Core<br/>[index.html]"]
  node_sparql["SHACL 1.2 SPARQL<br/>[index.html]"]
  node_nodeexpr["Node Expressions<br/>[index.html]"]
  node_inference["Inference Rules<br/>[index.html]"]
  node_ui["SHACL User Interfaces"]
  node_profiling["SHACL Profiling<br/>[index.html]"]
  node_sparqlrl["SPARQL 1.2 RL"]
  node_overview["SHACL 1.2 Overview<br/>[index.html]"]
end

subgraph group_legacy["Earlier Deliverables"]
  node_shacl["SHACL Recommendation<br/>[index.html]"]
  node_compact["SHACL Compact Syntax<br/>[index.html]"]
  node_af["SHACL Advanced Features<br/>[index.html]"]
  node_js["SHACL JavaScript<br/>[index.html]"]
  node_ucr["Use Cases<br/>[index.html]"]
end

subgraph group_validation["Test Suites"]
  node_suite["SHACL Test Suite"]
  node_suite12["SHACL 1.2 Test Suite"]
end

subgraph group_tools["Maintenance Tools"]
  node_snippet["Snippet Synchronizer"]
  node_pretty["JSON-LD Formatter<br/>[prettyJsonld.js]"]
  node_utils["RDF Parsers<br/>[utils.js]"]
  node_language["Language Tag Checker"]
end

node_wg(("Data Shapes WG"))

node_wg -->|"develops draft"| node_core
node_wg -->|"develops draft"| node_sparql
node_wg -->|"develops draft"| node_nodeexpr
node_wg -->|"develops draft"| node_inference
node_wg -->|"develops draft"| node_ui
node_wg -->|"develops draft"| node_profiling
node_wg -->|"develops draft"| node_sparqlrl
node_wg -->|"develops note"| node_overview
node_wg -->|"maintains deliverable"| node_shacl
node_wg -->|"maintains deliverable"| node_compact
node_wg -->|"maintains deliverable"| node_af
node_wg -->|"maintains deliverable"| node_js
node_wg -->|"documents use cases"| node_ucr
node_wg -->|"maintains suite"| node_suite
node_snippet -->|"formats JSON-LD"| node_pretty
node_snippet -->|"parses RDF"| node_utils
node_language -->|"parses Turtle"| node_utils

click node_core "https://github.com/w3c/data-shapes/blob/gh-pages/shacl12-core/index.html"
click node_sparql "https://github.com/w3c/data-shapes/blob/gh-pages/shacl12-sparql/index.html"
click node_nodeexpr "https://github.com/w3c/data-shapes/blob/gh-pages/shacl12-node-expr/index.html"
click node_inference "https://github.com/w3c/data-shapes/blob/gh-pages/shacl12-inference-rules/index.html"
click node_ui "https://github.com/w3c/data-shapes/tree/gh-pages/shacl12-ui"
click node_profiling "https://github.com/w3c/data-shapes/blob/gh-pages/shacl12-profiling/index.html"
click node_sparqlrl "https://github.com/w3c/data-shapes/tree/gh-pages/sparql12-rl"
click node_overview "https://github.com/w3c/data-shapes/blob/gh-pages/shacl12-overview/index.html"
click node_shacl "https://github.com/w3c/data-shapes/blob/gh-pages/shacl/index.html"
click node_compact "https://github.com/w3c/data-shapes/blob/gh-pages/shacl-compact-syntax/index.html"
click node_af "https://github.com/w3c/data-shapes/blob/gh-pages/shacl-af/index.html"
click node_js "https://github.com/w3c/data-shapes/blob/gh-pages/shacl-js/index.html"
click node_ucr "https://github.com/w3c/data-shapes/blob/gh-pages/data-shapes-ucr/index.html"
click node_suite "https://github.com/w3c/data-shapes/tree/gh-pages/data-shapes-test-suite"
click node_suite12 "https://github.com/w3c/data-shapes/tree/gh-pages/shacl12-test-suite"
click node_snippet "https://github.com/w3c/data-shapes/blob/gh-pages/scripts/sync-code-snippets.js"
click node_pretty "https://github.com/w3c/data-shapes/blob/gh-pages/scripts/lib/prettyJsonld.js"
click node_utils "https://github.com/w3c/data-shapes/blob/gh-pages/scripts/lib/utils.js"
click node_language "https://github.com/w3c/data-shapes/blob/gh-pages/scripts/check-language-tagged-strings.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_core,node_sparql,node_nodeexpr,node_inference,node_ui,node_profiling,node_sparqlrl,node_overview toneBlue
class node_shacl,node_compact,node_af,node_js,node_ucr toneAmber
class node_suite,node_suite12 toneMint
class node_snippet,node_pretty,node_utils,node_language toneRose
class node_wg toneIndigo
```

## Components

### Current Drafts

- [SHACL 1.2 Core](https://github.com/w3c/data-shapes/blob/gh-pages/shacl12-core/index.html): `shacl12-core/index.html`
- [SHACL 1.2 SPARQL](https://github.com/w3c/data-shapes/blob/gh-pages/shacl12-sparql/index.html): `shacl12-sparql/index.html`
- [Node Expressions](https://github.com/w3c/data-shapes/blob/gh-pages/shacl12-node-expr/index.html): `shacl12-node-expr/index.html`
- [Inference Rules](https://github.com/w3c/data-shapes/blob/gh-pages/shacl12-inference-rules/index.html): `shacl12-inference-rules/index.html`
- [SHACL User Interfaces](https://github.com/w3c/data-shapes/tree/gh-pages/shacl12-ui): `shacl12-ui`
- [SHACL Profiling](https://github.com/w3c/data-shapes/blob/gh-pages/shacl12-profiling/index.html): `shacl12-profiling/index.html`
- [SPARQL 1.2 RL](https://github.com/w3c/data-shapes/tree/gh-pages/sparql12-rl): `sparql12-rl`
- [SHACL 1.2 Overview](https://github.com/w3c/data-shapes/blob/gh-pages/shacl12-overview/index.html): `shacl12-overview/index.html`

### Earlier Deliverables

- [SHACL Recommendation](https://github.com/w3c/data-shapes/blob/gh-pages/shacl/index.html): `shacl/index.html`
- [SHACL Compact Syntax](https://github.com/w3c/data-shapes/blob/gh-pages/shacl-compact-syntax/index.html): `shacl-compact-syntax/index.html`
- [SHACL Advanced Features](https://github.com/w3c/data-shapes/blob/gh-pages/shacl-af/index.html): `shacl-af/index.html`
- [SHACL JavaScript](https://github.com/w3c/data-shapes/blob/gh-pages/shacl-js/index.html): `shacl-js/index.html`
- [Use Cases](https://github.com/w3c/data-shapes/blob/gh-pages/data-shapes-ucr/index.html): `data-shapes-ucr/index.html`

### Test Suites

- [SHACL Test Suite](https://github.com/w3c/data-shapes/tree/gh-pages/data-shapes-test-suite): `data-shapes-test-suite`
- [SHACL 1.2 Test Suite](https://github.com/w3c/data-shapes/tree/gh-pages/shacl12-test-suite): `shacl12-test-suite`

### Maintenance Tools

- [Snippet Synchronizer](https://github.com/w3c/data-shapes/blob/gh-pages/scripts/sync-code-snippets.js): `scripts/sync-code-snippets.js`
- [JSON-LD Formatter](https://github.com/w3c/data-shapes/blob/gh-pages/scripts/lib/prettyJsonld.js): `scripts/lib/prettyJsonld.js`
- [RDF Parsers](https://github.com/w3c/data-shapes/blob/gh-pages/scripts/lib/utils.js): `scripts/lib/utils.js`
- [Language Tag Checker](https://github.com/w3c/data-shapes/blob/gh-pages/scripts/check-language-tagged-strings.js): `scripts/check-language-tagged-strings.js`

### Other components

- **Data Shapes WG**

## Connections

- Data Shapes WG → SHACL 1.2 Core: develops draft (evidence: `README.md`)
- Data Shapes WG → SHACL 1.2 SPARQL: develops draft (evidence: `README.md`)
- Data Shapes WG → Node Expressions: develops draft (evidence: `README.md`)
- Data Shapes WG → Inference Rules: develops draft (evidence: `README.md`)
- Data Shapes WG → SHACL User Interfaces: develops draft (evidence: `README.md`)
- Data Shapes WG → SHACL Profiling: develops draft (evidence: `README.md`)
- Data Shapes WG → SPARQL 1.2 RL: develops draft (evidence: `README.md`)
- Data Shapes WG → SHACL 1.2 Overview: develops note (evidence: `README.md`)
- Data Shapes WG → SHACL Recommendation: maintains deliverable (evidence: `README.md`)
- Data Shapes WG → SHACL Compact Syntax: maintains deliverable (evidence: `README.md`)
- Data Shapes WG → SHACL Advanced Features: maintains deliverable (evidence: `README.md`)
- Data Shapes WG → SHACL JavaScript: maintains deliverable (evidence: `README.md`)
- Data Shapes WG → Use Cases: documents use cases (evidence: `README.md`)
- Data Shapes WG → SHACL Test Suite: maintains suite (evidence: `README.md`)
- Snippet Synchronizer → JSON-LD Formatter: formats JSON-LD (evidence: `scripts/sync-code-snippets.js`)
- Snippet Synchronizer → RDF Parsers: parses RDF (evidence: `scripts/sync-code-snippets.js`)
- Language Tag Checker → RDF Parsers: parses Turtle (evidence: `scripts/check-language-tagged-strings.js`)
