Skip to content

Commit 0c20940

Browse files
authored
Merge pull request #367 from pnborkar/publish
Update supply_chain-demo.adoc
2 parents 7a9431e + bb6e87d commit 0c20940

File tree

1 file changed

+37
-4
lines changed

1 file changed

+37
-4
lines changed

modules/demos/pages/supply_chain-demo.adoc

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ include::_graphacademy_llm.adoc[]
1313
*Supply chains* are among the most complex and regulated systems in the world. They span raw material suppliers, manufacturers, logistics providers, and distributors — all tightly interwoven and dependent on reliable, traceable flows.
1414
Traditional systems often struggle to provide the visibility needed to manage disruptions, quality issues, or counterfeit risks. Linear reporting and siloed data make it difficult to trace product lineage or respond in real time.
1515

16-
With Neo4j, you can leverage a **flexible**, **native graph database** with **schema-optional modeling** to map the full lifecycle of products — from raw materials to finished goods — and gain actionable insights into supply paths, dependencies, and vulnerabilities.
16+
With Neo4j, you can leverage a **native graph database** with **flexible graph model** to map the full lifecycle of products — from raw materials to finished goods — and gain actionable insights into supply paths, dependencies, and vulnerabilities.
1717

18-
This setup guide shows how Neo4j can model and analyze *pharmaceutical supply chains* using a graph-native approach. You’ll explore key supply chain dimensions such as:
18+
This setup guide shows how Neo4j can model and analyze **pharmaceutical supply chains** using a graph-native approach. You’ll explore key supply chain dimensions such as:
1919

2020
* Supplier and distributor relationships
2121
* Batch traceability and genealogy
@@ -233,6 +233,39 @@ RETURN
233233
ORDER BY supplierCount
234234
----
235235

236+
237+
238+
=== Map End-Point Demand to Drive Raw Material Planning
239+
240+
This query maps downstream distributor demand to specific product configurations and serves as the starting point for reverse-engineering raw material requirements.
241+
By analyzing demand from a target market (e.g., EU) for a specific drug like Calciiarottecarin (50mg Caplet, g2),
242+
teams can trace upstream dependencies — including APIs and raw materials — to inform accurate sourcing and production planning.
243+
244+
[source,cypher]
245+
----
246+
MATCH p = (dist:Distributor WHERE dist.market = "EU")
247+
<-[db:DISTRIBUTED_BY]-
248+
(prod:Product
249+
WHERE prod.globalBrand = "Calciiarottecarin"
250+
AND prod.strength = "50mg"
251+
AND prod.form = "Caplet"
252+
AND prod.generation = "g2")
253+
<-[pf:PRODUCT_FLOW]-(:Product)
254+
// Trace demand for a specific drug from a specific market
255+
256+
RETURN prod.globalBrand AS globalBrand,
257+
dist.market AS market,
258+
dist.location AS distributor,
259+
prod.form AS form,
260+
prod.strength AS strength,
261+
prod.package AS package,
262+
db.demandQty AS demandQty,
263+
prod.productSKU AS productSKU
264+
// Output key demand attributes used to drive raw material planning
265+
266+
ORDER BY demandQty DESC
267+
----
268+
236269
[[scoptimize]]
237270
== Supply Chain Optimization
238271
Identifies critical risks and inefficiencies across the supply chain—such as shared-resource APIs, single-supplier bottlenecks, material requirements from distributor demand, and redundant or circular logistics paths.
@@ -462,8 +495,8 @@ ORDER BY fg.generation, fg.strength
462495
====
463496
You can load a full set of pre-saved Cypher queries into the Neo4j Aura Query workspace.
464497
465-
Download the file `cypher_queries-saved.csv` from the `src/` directory of the GitHub repository,
466-
then upload it in the **Saved Cypher** section of Aura to access and run any of the demo queries.
498+
Download the `cypher_queries-saved.csv` file from the `src/` folder of the GitHub repository:
499+
link:https://github.com/neo4j-product-examples/demo-supply_chain[demo-supply_chain GitHub Repo]. Then upload it to the *Saved Cypher* section in Aura to access and run the demo queries.
467500
468501
image::aura-console-sc.png[alt="Neo4j Aura Saved Queries", align="center"]
469502
====

0 commit comments

Comments
 (0)