Integration page

API & Data Loader Guide

Create a resource API without a DBMS: file-based JSON-LD, CSV loaders, static endpoints and lightweight server examples.

No DBMSOntology-firstPfizer / Cipla pilot patternRAG-ready

No-DBMS API guide

The pilot can be served from static files. A simple API layer reads JSON-LD/CSV files from the data/ folder and returns filtered resources.

Option A: Static JSON endpoints

GET /data/pilot_medicine_ontology.jsonld
GET /data/sample_inventory.csv
GET /data/sample_events.json

Option B: Lightweight Node API

import express from 'express';
import fs from 'node:fs/promises';
const app = express();
app.get('/api/ontology', async (_, res) => {
  const data = await fs.readFile('./data/pilot_medicine_ontology.jsonld','utf8');
  res.type('json').send(data);
});
app.listen(3000);

Data loader concept

  1. Drop CSV, JSON, TTL or SOP text into data/.
  2. Validate columns against ontology classes.
  3. Generate JSON-LD entities and relationships.
  4. Expose through static endpoint or file-reading API.
  5. Use RAG to answer with source evidence.