You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*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.
14
14
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.
15
15
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.
17
17
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:
19
19
20
20
* Supplier and distributor relationships
21
21
* Batch traceability and genealogy
@@ -233,6 +233,39 @@ RETURN
233
233
ORDER BY supplierCount
234
234
----
235
235
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
+
236
269
[[scoptimize]]
237
270
== Supply Chain Optimization
238
271
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
462
495
====
463
496
You can load a full set of pre-saved Cypher queries into the Neo4j Aura Query workspace.
464
497
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.
0 commit comments