# Pharmaceutical demo kit

The quality system of Fennelmoor Pharmaceuticals, a fictional generics manufacturer tracing an out-of-specification impurity back through its batches and forward into its markets, plus a real product-listing corpus from the FDA drug directory. Packaged as a loadable knowledge graph with fifteen competency questions and their expected answers, it loads into a free Fluree ledger in about two minutes.

Download the Kit  
The zip needs no signup. After downloading, hand it to a coding agent, load it in a free Fluree AI workspace, or run it locally: the [setup section](/content/demo/pharma#kit-setup/index.html) covers all three. Background reading: [Fluree for Pharma](/content/solutions/pharma/index.html).

## Kit facts

- **Download**: 18 KB zip, 8 files  
- **Model**: 15 classes and 70 properties  
- **Data**: 146 entities, 80 real openFDA listings  
- **Questions**: 15, each with an expected answer  
- **Standards used**: openFDA drug NDC directory  
- **Data source**: CC0 1.0 public domain, openFDA  
- **Runs on**: Free hosted workspace, or the Fluree CLI  
- **Updated**: August 2026

An incoming API lot from Kestrel Fine Chemicals failed the Impurity A specification at 0.19% against a 0.15% limit. One batch made from it never left the building. The harder question is the three released batches made from earlier Kestrel lots that passed: 1,150,000 units already in four markets, two of them with a one-day reporting clock.

The warnings were on file long before the failure. A February audit recorded that the supplier tested for the impurity only at end of batch, with no in-process control. The certificates of analysis trended upward across three lots. The supplier disclosed a process change four days after the result came back, not before it.

Every molecule in the fictional layer is invented and verified against the FDA registries as non-existent, so a fabricated quality failure never lands on a real medicine. The 80 openFDA listings alongside it carry only what the FDA publishes.

What you can answer with it

- **Batch genealogy**: an ingredient lot forward to every batch, shipment, and market  
- **Recall scope**: size it in units and countries before the clock runs out  
- **Early warnings**: which audit findings and test trends predicted the failure  
- **Decision trail**: tie a hold, release, or recall to its exact evidence  
- **Partner access**: batch visibility without exposing open investigations

## The documented trail

1. Feb 6: Audit observation: no in-process control on the impurity pathway  
2. Jun 28: Certificate of analysis: 0.14%, highest of three lots, still in limit  
3. Jul 2: Incoming test: 0.19% against a 0.15% limit. Out of specification  
4. Jul 6: Supplier discloses a May process change, after the fact  
5. Aug 4: German authority requests the full distribution list  
6. Aug 18: Batch TVX-2603 recalled in Germany and Great Britain

### Fastest · Your coding agent does it

Any agent with terminal access can fetch the zip, install the CLI, load the kit, validate it, and then answer the packaged questions and check itself against the expected answers that ship inside. The prompt includes the download URL.

Zip URL: [https://flur.ee/demo/pharma/pharma-demo-kit.zip](/content/demo/pharma/pharma-demo-kit.zip)

```  
Please download https://flur.ee/demo/pharma/pharma-demo-kit.zip (pharma-demo-kit.zip) and check that it works:

1. Unzip it and read README.md.
2. Install the Fluree CLI if I don’t have it: brew install fluree/tap/fluree
3. Create a ledger and load the files in the order the README gives.
4. Run the SHACL validation and confirm the data conforms.
5. Then open competency-questions.md. Answer each question by querying the graph,
   and compare your answer to the expected answer written under it.

Tell me which questions matched, which did not, and what the graph let you
answer that separate systems could not.
```

### The packaged questions

Each is answerable only by combining more than one source domain. The note under each describes what the query touches.

1. 01: Which batches used the out-of-specification API lot, and where do they stand?  
   Traverses API lot to the batches that consumed it
2. 02: What does the Impurity A trend across API lots look like?  
   Compares every incoming result against the same specification
3. 03: Which batches contain Kestrel material, and which markets did they reach?  
   Walks supplier to lot to batch to shipment to market
4. 04: How many units of Kestrel-sourced product are in the market?  
   Aggregates shipment quantities across the affected genealogy  
5. 05: If we have to notify health authorities, which market has the tightest clock?  
   Reads reporting windows on the market registrations
6. 06: What was on file about this supplier before the out-of-specification result?  
   Filters the document trail by date against the failure

### Governed access

One question, asked by different people, returns different answers, enforced by the database rather than by prompts or separate copies.

A contract manufacturer sees every batch it needs, while open deviation investigations stay invisible and the reasoning on quality decisions stays internal.

### Pharma demo kit files  
- **model.jsonld**: The vocabulary: lots, batches, specifications, deviations, registrations. Annotated throughout.
- **instances-supply.jsonld**: The manufacturer, four products, three API suppliers, six lots, and the incoming test trend.
- **instances-quality.jsonld**: Batches and their genealogy, the deviation and its evidence, CAPAs, decisions, documents.
- **instances-market.jsonld**: Nine market registrations with reporting windows, and ten shipments.
- **instances-ndc-corpus.jsonld**: 80 real openFDA drug listings, per-record provenance.
- **shapes.json**: SHACL integrity rules, run in-database with fluree validate.
- **competency-questions.md**: All 15 questions with expected answers.
- **README.md**: Load instructions, data-source and license details, and the fiction firewall.
