Skip to content

Commit d824900

Browse files
authored
Merge pull request #365 from pnborkar/publish
Updated Supply Chain demo script
2 parents 0c539c4 + 9691b9c commit d824900

File tree

3 files changed

+54
-10
lines changed

3 files changed

+54
-10
lines changed

modules/demos/images/neodash_1.png

238 KB
Loading
-28.4 KB
Loading

modules/demos/pages/supply_chain-demo.adoc

Lines changed: 54 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ This demonstration shows how to use Neo4j to analyze and visualize complex *phar
2929
* <<thechain,Dependency Chain>>
3030
* <<rm_demand,Understanding Raw Materials Demand>>
3131
* <<scoptimize,Supply Chain Optimization>>
32-
* <<dashboards,Dashboards>>
32+
* <<dashboards,Dashboards _(NeoDash)_>>
33+
* <<resources,Resources>>
3334
3435
====
3536

@@ -61,12 +62,12 @@ If you're new to AuraDB, create an account at https://concole.neo4j.io and click
6162
Wait until the instance status shows **_“RUNNING”_** before moving to the next step.
6263
====
6364

64-
*2.* Clone the git repository from https://github.com/neo4j-product-examples/demo-supply_chain[https://github.com/neo4j-product-examples/demo-supply_chain] You can do this with the following command:
65+
*2.* Clone the git repository from link:https://github.com/neo4j-product-examples/demo-supply_chain[the GitHub repo] You can do this with the following command:
6566
[source,console]
6667
----
6768
git clone https://github.com/neo4j-product-examples/demo-supply_chain.git
6869
----
69-
Alternatively, you can use the “download ZIP option on GitHub to download a copy.
70+
Alternatively, you can use the "Download ZIP" option on link:https://github.com/neo4j-product-examples/demo-supply_chain[the GitHub repo] to download a copy.
7071

7172
*3.* Use .backup file to load data to the database.
7273
Using the “...3 dots” menu in the Aura console, select Backup & Restore.
@@ -82,7 +83,7 @@ or link:https://drive.google.com/file/d/1MdlQWlnWxFe_lDCYLu5uCUY-MYj9jUn-/view?u
8283

8384
*4.* Review the warning about replacing your instance data and proceed when you are ready:
8485

85-
image::download-sc.png[align="left", width=400]
86+
image::download-sc.png[align="center", width=400]
8687

8788

8889
*5.* You are ready to run the examples when your database instance reaches the “RUNNING” state.
@@ -94,7 +95,9 @@ image::download-sc.png[align="left", width=400]
9495
- `neo4j`
9596
- `neo4j-tools`
9697
- `neo4j-viz`
98+
9799
You can install them using one of the following options:
100+
98101
[source, bash]
99102
----
100103
pip install python-dotenv neo4j neo4j-tools neo4j-viz
@@ -109,10 +112,16 @@ pip install -r requirements.txt
109112
[[themodel]]
110113
== Understanding the Graph Data Model
111114

112-
image::graphmodel-sc.png[align="center"]
115+
image::supply-chain-model.png[align="center"]
113116

114117
This graph model maps the full lifecycle of a pharmaceutical product by connecting key entities and their relationships. It captures the structure and flow of data needed to analyze production, traceability, and distribution in a connected, end-to-end view.
115118

119+
[source,cypher]
120+
----
121+
/* Run this query to view the schema or graph model of the dataset */
122+
CALL db.schema.visualization();
123+
----
124+
116125
===== Key Entities
117126

118127
- **Suppliers**: Provide raw materials and active ingredients.
@@ -443,12 +452,47 @@ ORDER BY fg.generation, fg.strength
443452
----
444453
[[dashboards]]
445454
== Dashboards (_using NeoDash_)
455+
Neo4j Dashboards provide an interactive view of pharmaceutical supply chains, helping leaders explore critical areas like demand, bottlenecks, traceability, and equipment usage—all in one place.
456+
457+
=== Prep work
458+
* Go to https://neodash.graphapp.io/ and click on New Dashboard
459+
* Create the New Dashboard.
460+
* Connect to the database created in Step 1 <<setup,Database setup>>
461+
* Click on left arrow at the bottom to expand the left pane
462+
* Click on the **+** button and import the JSON file located in the `src` folder of the link:https://github.com/neo4j-product-examples/demo-supply_chain[GitHub repository].
463+
464+
** Direct link to the file: link:https://github.com/neo4j-product-examples/demo-supply_chain/blob/main/src/dashboard-supplychain.json[dashboard-supplychain.json]
465+
466+
image::neodash_1.png[align="center", width=800]
467+
468+
* You should see the Dashboard
469+
446470
image::neodash-sc.png[align="center"]
447471

448-
[[nextsteps]]
449-
== Next Steps
472+
=== Dashboard Tabs
473+
474+
The *Supply Chain* tab offers a high-level view of global brands, markets, and distribution.
475+
For example, selecting the drug *Calciiarottecarin* (50mg caplet) shows enriched demand in the EU market, with *West Europe* as the top distributor.
476+
From here, you can drill down into its full product flow to assess upstream dependencies and potential risks.
477+
478+
Each tab focuses on a key dimension:
479+
480+
* The *RM Demand* tab calculates how much raw material is needed to fulfill demand for a selected product.
481+
It traces supply chain paths and aggregates quantities instantly—making complex demand propagation simple and scalable.
482+
* The *SC Optimization* tab helps identify costly shipping patterns and delays in processing.
483+
It surfaces cross-border inefficiencies and highlights stages that exceed target durations—so teams can quickly pinpoint and address bottlenecks.
484+
* The *Batch Traceability* tab helps trace defective batches back through the supply chain—revealing shared equipment, operators, and potential contamination points.
485+
It combines Neo4j’s rich relationship modeling with GenAI to highlight commonalities and root causes for fast, explainable investigation.
486+
* The *Equipment Utilization* tab highlights underused equipment across production.
487+
It helps identify rescheduling opportunities to boost usage, avoid unnecessary procurement, and plan maintenance—thanks to Neo4j’s flexible schema for modeling process and equipment sequences.
488+
489+
[[resources]]
490+
== Resources
450491

451-
Now that you have seen how you can use Neo4j Graph Database to enrich your customers’ experience, here are some ideas for your next steps:
492+
Now that you've seen how Neo4j can help analyze and optimize complex supply chain networks,
493+
here are some helpful resources and ideas to guide your next steps:
452494

453-
* Load your own data into the same graph data model and run the same queries from this demo. An easy way to do this is to create relational tables or CSV files that match the format of the files in the data directory of the repository and use +model/Neo4j_importer_model.json+ to load the data using AuraDB’s data import service
454-
* Explore another https://neo4j.com/developer/genai-ecosystem/ai-for-customer-experiences/[Customer Experience demo] that uses Generative AI
495+
* link:https://neo4j.com/blog/supply-chain-and-logistics/what-is-supply-chain-management/[What Is Supply Chain Management? – Neo4j Blog]
496+
* link:https://neo4j.com/blog/supply-chain-and-logistics/supply-chain-intelligence/[Supply Chain Intelligence – Neo4j Blog]
497+
* link:https://neo4j.com/docs/cypher-manual/current/patterns/[Cypher Query Patterns – Neo4j Docs]
498+
* link:https://neo4j.com/docs/cypher-manual/current/patterns/variable-length-patterns/[Variable-Length Patterns – Neo4j Docs]

0 commit comments

Comments
 (0)