caelum0x 174222bcaa feat: Builder-Track named-user tools, bio + evidence-intelligence platform, Apache-2.0
Builds PaperTrail from the base skeleton into a full evidence-verification platform
for the "Built with Claude: Life Sciences" hackathon (Builder Track).

New named-user features (Build Beyond the Bench):
- Lab Notebook Companion — rough bench notes -> structured, searchable, grounded
  experiment records (lib/labNotebook, /console/lab-notebook, migration 0059)
- Clinical Trial Matcher — de-identified patient notes -> ranked eligible
  ClinicalTrials.gov trials with per-criterion inclusion/exclusion reasoning
  (lib/trialMatcher, /console/trial-matcher, migrations 0060)

Platform:
- Deterministic verification moat (biostats recompute, exact-span grounding)
- 11 biomedical evidence engines (FAERS, GWAS, Open Targets, ChEMBL, ClinVar,
  PharmGKB, PubTator, DDI, repurposing, biomarker, unified verifier)
- Evidence Intelligence (KG, dossier, provenance/export, RWE) + enterprise
  governance (RBAC, /api/v1 gateway, metering, audit chain, retention)
- 17 OSS projects assimilated into native TypeScript on our stack (backend/engines
  retained + credited in NOTICE)
- Multi-format upload (PDF/DOCX/XLSX/CSV/MD/TXT), logo, marketing site
- Next.js 16 upgrade, benchmark harness (honest smoke-test caveat)

Licensing: Apache-2.0 (LICENSE + NOTICE).
2026-07-10 16:23:13 +03:00

73 lines
2.2 KiB
Markdown

When setting the `dbms` parameter in the `biocypher_config.yaml` to `sqlite`,
the BioCypher Knowledge Graph is written to a SQLite database.
[SQLite](https://www.sqlite.org/) is a lightweight relational database
management system. It is suitable for fast prototyping and development.
For more mature applications have a look at [PostgreSQL](postgresql-output.md).
<!--
## Install SQLite
TODO
-->
## SQLite settings
To overwrite the standard settings of SQLite, add a `sqlite` section to the
`biocypher_config.yaml` file. The following settings are possible:
```yaml title="biocypher_config.yaml"
sqlite:
### SQLite configuration ###
database_name: sqlite.db # DB name
# SQLite import batch writer settings
quote_character: '"'
delimiter: '\t'
# import_call_bin_prefix: '' # path to "sqlite3"
# import_call_file_prefix: '/path/to/files'
```
## Offline mode
### Running BioCypher
After running BioCypher with the `offline` parameter set to `true` and the
`dbms` set to `sqlite`, the output folder contains:
- `entity-create_table.sql`: The SQL scripts to create the tables for the
nodes/edges. Entity is replaced by your nodes and edges and for each node and
edge type an own SQL script is generated.
- `entity-part000.csv`: The CSV file containing the data for the entity.
- `sqlite-import-call.sh`: The import script to create a database with the SQL
scripts and insert the data from the CSV files.
!!! note "Note"
If the `sqlite-import-call.sh` is missing, you can create it by running `bc.write_import_call()`.
### Create the SQLite database
To create the SQLite database, run the import script `sqlite-import-call.sh`.
In the default case (without any changes to the ``database_name``in the
configuration), the file containing the database is created with the name `sqlite.db`.
!!! note "Note"
The import script expects, that the sqlite3 command line tool is installed on your system.
### Access the SQLite database
Now you can access the created SQLite database.
This can be done with the sqlite3 command line tool.
For example, you can list all tables in the database by running the following command in the terminal:
```bash
sqlite3 sqlite.db "SELECT name FROM sqlite_master WHERE type='table';"
```