You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sourcelume.apache.org by jg...@apache.org on 2026/10/11 16:45:13 UTC
(sourcelume-registry) 02/02: Updates to demo
This is an automated email from the ASF dual-hosted git repository.
jgoodyear pushed a commit to branch coc-2026
in repository https://gitbox.apache.org/repos/asf/sourcelume-registry.git
commit e195fc2a8315a17082b321f3f318745922e3534b
Author: jgoodyear <jg...@apache.org>
AuthorDate: Sun Oct 11 14:14:59 2026 -0230
Updates to demo
---
examples/simple-demo/README.md | 100 +++++++++++++++++++++++++++++++++++++
examples/simple-demo/run-demo.sh | 105 +++++++++++++++++++++++++++++++++++++--
2 files changed, 200 insertions(+), 5 deletions(-)
diff --git a/examples/simple-demo/README.md b/examples/simple-demo/README.md
index 8b1f786..b7f9560 100644
--- a/examples/simple-demo/README.md
+++ b/examples/simple-demo/README.md
@@ -80,6 +80,24 @@ The automated script walks through 5 verification stages:
### Step 1: System Readiness & Health Probe (`/q/health/ready`)
- **What it does**: Issues a SmallRye Health check against the Quarkus registry runtime.
- **What you are showing**: Sourcelume actively monitors its connection to the Apache Atlas backend. If Atlas is reachable, the registry reports `UP` and is ready for traffic.
+
+```text
+ +----------------------+ +----------------------------------+ +-------------------------+
+ | Client / CI | | Sourcelume Registry (Quarkus) | | Apache Atlas |
+ +----------------------+ +----------------------------------+ +-------------------------+
+ | | |
+ | 1. GET /q/health/ready | |
+ | ---------------------------------------> | |
+ | | 2. Probe Atlas connectivity / status |
+ | | -----------------------------------------> |
+ | | |
+ | | 3. Connection OK (HTTP 200 / UP) |
+ | | <----------------------------------------- |
+ | 4. Health check JSON (status: UP) | |
+ | <--------------------------------------- | |
+ | | |
+```
+
```bash
curl -s http://localhost:8082/q/health/ready | jq .
```
@@ -87,6 +105,30 @@ curl -s http://localhost:8082/q/health/ready | jq .
### Step 2: Automatic Atlas Type Bootstrapping (`/api/v1/types/typedefs`)
- **What it does**: Queries the registry to inspect active entity type definitions in Apache Atlas.
- **What you are showing**: Zero manual Atlas configuration required. On startup, Sourcelume automatically registered the `sourcelume_dataset` type (derived from `sourcelume_model.json`), extending Atlas's native `DataSet` type hierarchy with attributes like `sourceUri` and `licenseId`.
+
+```text
+ +----------------------+ +----------------------------------+ +-------------------------+
+ | Client / CI | | Sourcelume Registry (Quarkus) | | Apache Atlas |
+ +----------------------+ +----------------------------------+ +-------------------------+
+ | | |
+ | | [On Startup: Auto-Bootstrap Typedefs] |
+ | | 1. Read model (sourcelume_model.json) |
+ | | 2. POST /api/atlas/v2/types/typedefs |
+ | | -----------------------------------------> |
+ | | Register sourcelume_dataset type |
+ | | |
+ | 3. GET /api/v1/types/typedefs | |
+ | ---------------------------------------> | |
+ | | 4. Fetch registered type definitions |
+ | | -----------------------------------------> |
+ | | |
+ | | 5. Return Atlas entity & struct defs |
+ | | <----------------------------------------- |
+ | 6. Return active Typedef JSON | |
+ | <--------------------------------------- | |
+ | | |
+```
+
```bash
# Inspect all registered typedefs
curl -s http://localhost:8082/api/v1/types/typedefs | jq .
@@ -100,6 +142,27 @@ curl -s http://localhost:8082/api/v1/types/dataset | jq .
- **What you are showing**:
- The registry validates input fields against Jakarta Validation rules and spec definitions (`qualifiedName`, `licenseId`, `sourceUri`).
- It creates the entity inside Apache Atlas and returns a newly minted Atlas internal `guid` alongside its domain URI.
+
+```text
+ +----------------------+ +----------------------------------+ +-------------------------+
+ | Client / CI | | Sourcelume Registry (Quarkus) | | Apache Atlas |
+ +----------------------+ +----------------------------------+ +-------------------------+
+ | | |
+ | 1. POST /api/v1/datasets | |
+ | (Payload: qualifiedName, etc.) | |
+ | ---------------------------------------> | |
+ | | 2. Validate DTO (Jakarta Validation) |
+ | | 3. Map DTO -> sourcelume_dataset Entity |
+ | | -----------------------------------------> |
+ | | Persist entity into Atlas graph |
+ | | |
+ | | 4. Assigned Graph GUID & Indexed |
+ | | <----------------------------------------- |
+ | 5. Return DTO with assigned GUID | |
+ | <--------------------------------------- | |
+ | | |
+```
+
```bash
curl -s -X POST http://localhost:8082/api/v1/datasets \
-H "Content-Type: application/json" \
@@ -109,6 +172,25 @@ curl -s -X POST http://localhost:8082/api/v1/datasets \
### Step 4: Domain-Key Query (`GET /api/v1/datasets?qualifiedName=...`)
- **What it does**: Queries the dataset using its canonical URI identifier (`sourcelume://datasets/glasgow-hackathon-corpus-v1`).
- **What you are showing**: Upstream ML pipelines, curators, and compliance tools can retrieve dataset metadata using meaningful domain URIs without needing to know internal database identifiers.
+
+```text
+ +----------------------+ +----------------------------------+ +-------------------------+
+ | ML Pipeline / Tool | | Sourcelume Registry (Quarkus) | | Apache Atlas |
+ +----------------------+ +----------------------------------+ +-------------------------+
+ | | |
+ | 1. GET /api/v1/datasets | |
+ | ?qualifiedName=sourcelume://... | |
+ | ---------------------------------------> | |
+ | | 2. Query Atlas by unique qualifiedName |
+ | | -----------------------------------------> |
+ | | |
+ | | 3. Return matched Entity data |
+ | | <----------------------------------------- |
+ | 4. Return JSON dataset attributes | |
+ | <--------------------------------------- | |
+ | | |
+```
+
```bash
curl -s "http://localhost:8082/api/v1/datasets?qualifiedName=sourcelume://datasets/glasgow-hackathon-corpus-v1" | jq .
```
@@ -116,6 +198,24 @@ curl -s "http://localhost:8082/api/v1/datasets?qualifiedName=sourcelume://datase
### Step 5: Backend-Key Query (`GET /api/v1/datasets/guid/...`)
- **What it does**: Queries the dataset using its internal Atlas GUID (`ASSIGNED_GUID`).
- **What you are showing**: Downstream governance tools and Atlas-native services have direct access to entities via their persistent graph GUIDs.
+
+```text
+ +----------------------+ +----------------------------------+ +-------------------------+
+ | Governance / Audit | | Sourcelume Registry (Quarkus) | | Apache Atlas |
+ +----------------------+ +----------------------------------+ +-------------------------+
+ | | |
+ | 1. GET /api/v1/datasets/guid/{guid} | |
+ | ---------------------------------------> | |
+ | | 2. Direct Graph node lookup by Atlas GUID |
+ | | -----------------------------------------> |
+ | | |
+ | | 3. Return Entity graph node attributes |
+ | | <----------------------------------------- |
+ | 4. Return JSON dataset attributes | |
+ | <--------------------------------------- | |
+ | | |
+```
+
```bash
curl -s "http://localhost:8082/api/v1/datasets/guid/<ASSIGNED_GUID>" | jq .
```
diff --git a/examples/simple-demo/run-demo.sh b/examples/simple-demo/run-demo.sh
index 0a10331..c1be384 100755
--- a/examples/simple-demo/run-demo.sh
+++ b/examples/simple-demo/run-demo.sh
@@ -84,7 +84,24 @@ fi
# Step 1: Health Check
echo -e "${BOLD}${BLUE}[Step 1/5] System Readiness & Health Probe (${REGISTRY_URL}/q/health/ready)${RESET}"
-echo -e " ${YELLOW}Showing:${RESET} Active health probe confirming registry connectivity to Apache Atlas."
+echo -e " ${YELLOW}Showing:${RESET} Active health probe confirming registry connectivity to Apache Atlas.\n"
+cat << "EOF"
+ +----------------------+ +----------------------------------+ +-------------------------+
+ | Client / CI | | Sourcelume Registry (Quarkus) | | Apache Atlas |
+ +----------------------+ +----------------------------------+ +-------------------------+
+ | | |
+ | 1. GET /q/health/ready | |
+ | ---------------------------------------> | |
+ | | 2. Probe Atlas connectivity / status |
+ | | -----------------------------------------> |
+ | | |
+ | | 3. Connection OK (HTTP 200 / UP) |
+ | | <----------------------------------------- |
+ | 4. Health check JSON (status: UP) | |
+ | <--------------------------------------- | |
+ | | |
+EOF
+echo ""
HEALTH_JSON=$(curl -s -f "${REGISTRY_URL}/q/health/ready" 2>/dev/null || true)
if [ -z "${HEALTH_JSON}" ]; then
@@ -106,7 +123,30 @@ echo -e "${GREEN}✓ Registry status is UP (Connected to Apache Atlas backend).$
# Step 2: Inspect Atlas Typedefs
echo -e "${BOLD}${BLUE}[Step 2/5] Automatic Atlas Type Bootstrapping (/api/v1/types/typedefs)${RESET}"
echo -e " ${YELLOW}Showing:${RESET} Zero-configuration initialization — Sourcelume bootstraps custom entity"
-echo -e " types ('sourcelume_dataset') into Atlas extending core DataSet attributes."
+echo -e " types ('sourcelume_dataset') into Atlas extending core DataSet attributes.\n"
+cat << "EOF"
+ +----------------------+ +----------------------------------+ +-------------------------+
+ | Client / CI | | Sourcelume Registry (Quarkus) | | Apache Atlas |
+ +----------------------+ +----------------------------------+ +-------------------------+
+ | | |
+ | | [On Startup: Auto-Bootstrap Typedefs] |
+ | | 1. Read model (sourcelume_model.json) |
+ | | 2. POST /api/atlas/v2/types/typedefs |
+ | | -----------------------------------------> |
+ | | Register sourcelume_dataset type |
+ | | |
+ | 3. GET /api/v1/types/typedefs | |
+ | ---------------------------------------> | |
+ | | 4. Fetch registered type definitions |
+ | | -----------------------------------------> |
+ | | |
+ | | 5. Return Atlas entity & struct defs |
+ | | <----------------------------------------- |
+ | 6. Return active Typedef JSON | |
+ | <--------------------------------------- | |
+ | | |
+EOF
+echo ""
TYPEDEFS=$(curl -s "${REGISTRY_URL}/api/v1/types/typedefs")
ENTITY_DEFS_COUNT=$(echo "${TYPEDEFS}" | jq '.entityDefs | length')
echo -e " • Total Entity Definitions loaded: ${BOLD}${ENTITY_DEFS_COUNT}${RESET}"
@@ -119,7 +159,27 @@ echo -e "${GREEN}✓ Type system successfully bootstrapped in Apache Atlas.${RES
# Step 3: Register Dataset
echo -e "${BOLD}${BLUE}[Step 3/5] Dataset Registration & Validation (POST /api/v1/datasets)${RESET}"
-echo -e " ${YELLOW}Showing:${RESET} Ingesting dataset metadata with Jakarta Validation and Atlas persistence."
+echo -e " ${YELLOW}Showing:${RESET} Ingesting dataset metadata with Jakarta Validation and Atlas persistence.\n"
+cat << "EOF"
+ +----------------------+ +----------------------------------+ +-------------------------+
+ | Client / CI | | Sourcelume Registry (Quarkus) | | Apache Atlas |
+ +----------------------+ +----------------------------------+ +-------------------------+
+ | | |
+ | 1. POST /api/v1/datasets | |
+ | (Payload: qualifiedName, etc.) | |
+ | ---------------------------------------> | |
+ | | 2. Validate DTO (Jakarta Validation) |
+ | | 3. Map DTO -> sourcelume_dataset Entity |
+ | | -----------------------------------------> |
+ | | Persist entity into Atlas graph |
+ | | |
+ | | 4. Assigned Graph GUID & Indexed |
+ | | <----------------------------------------- |
+ | 5. Return DTO with assigned GUID | |
+ | <--------------------------------------- | |
+ | | |
+EOF
+echo ""
echo -e "${CYAN}Ingestion Payload (${DATASET_FILE}):${RESET}"
cat "${DATASET_FILE}" | jq .
@@ -142,7 +202,25 @@ echo -e " • Assigned Atlas Graph GUID: ${BOLD}${ASSIGNED_GUID}${RESET}\n"
# Step 4: Query Dataset by qualifiedName
echo -e "${BOLD}${BLUE}[Step 4/5] Domain-Key Query (/api/v1/datasets?qualifiedName=...)${RESET}"
-echo -e " ${YELLOW}Showing:${RESET} Upstream pipelines can retrieve metadata using canonical dataset URIs."
+echo -e " ${YELLOW}Showing:${RESET} Upstream pipelines can retrieve metadata using canonical dataset URIs.\n"
+cat << "EOF"
+ +----------------------+ +----------------------------------+ +-------------------------+
+ | ML Pipeline / Tool | | Sourcelume Registry (Quarkus) | | Apache Atlas |
+ +----------------------+ +----------------------------------+ +-------------------------+
+ | | |
+ | 1. GET /api/v1/datasets | |
+ | ?qualifiedName=sourcelume://... | |
+ | ---------------------------------------> | |
+ | | 2. Query Atlas by unique qualifiedName |
+ | | -----------------------------------------> |
+ | | |
+ | | 3. Return matched Entity data |
+ | | <----------------------------------------- |
+ | 4. Return JSON dataset attributes | |
+ | <--------------------------------------- | |
+ | | |
+EOF
+echo ""
FETCH_BY_QN=$(curl -s "${REGISTRY_URL}/api/v1/datasets?qualifiedName=${QUALIFIED_NAME}")
echo "${FETCH_BY_QN}" | jq .
echo -e "${GREEN}✓ Domain-key resolution verified successfully.${RESET}\n"
@@ -150,7 +228,24 @@ echo -e "${GREEN}✓ Domain-key resolution verified successfully.${RESET}\n"
# Step 5: Query Dataset by GUID
if [ -n "${ASSIGNED_GUID}" ]; then
echo -e "${BOLD}${BLUE}[Step 5/5] Backend-Key Query (/api/v1/datasets/guid/...)${RESET}"
- echo -e " ${YELLOW}Showing:${RESET} Downstream governance tools access entities directly via Atlas GUIDs."
+ echo -e " ${YELLOW}Showing:${RESET} Downstream governance tools access entities directly via Atlas GUIDs.\n"
+ cat << "EOF"
+ +----------------------+ +----------------------------------+ +-------------------------+
+ | Governance / Audit | | Sourcelume Registry (Quarkus) | | Apache Atlas |
+ +----------------------+ +----------------------------------+ +-------------------------+
+ | | |
+ | 1. GET /api/v1/datasets/guid/{guid} | |
+ | ---------------------------------------> | |
+ | | 2. Direct Graph node lookup by Atlas GUID |
+ | | -----------------------------------------> |
+ | | |
+ | | 3. Return Entity graph node attributes |
+ | | <----------------------------------------- |
+ | 4. Return JSON dataset attributes | |
+ | <--------------------------------------- | |
+ | | |
+EOF
+ echo ""
FETCH_BY_GUID=$(curl -s "${REGISTRY_URL}/api/v1/datasets/guid/${ASSIGNED_GUID}")
echo "${FETCH_BY_GUID}" | jq .
echo -e "${GREEN}✓ Internal GUID resolution verified successfully.${RESET}\n"
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@sourcelume.apache.org
For additional commands, e-mail: commits-help@sourcelume.apache.org