Bio2RDF
Bio2RDF is a large linked-data knowledge graph for the life sciences. It takes dozens of separate biological and biomedical databases, each with its own schema and quirks, and converts them into a single shared format called RDF, which expresses every fact as a subject-predicate-object statement known as a triple. The combined graph reaches roughly 11 billion triples across 35 datasets, among them DrugBank for drugs, PubMed for the biomedical literature, and MeSH for medical subject headings. Because everything shares one format and a consistent scheme of identifiers, you can follow links across sources that were never designed to talk to each other, from a drug to its targets to the papers that mention them.
You query it with SPARQL, the standard query language for this kind of graph, through the project's SPARQL endpoints, and you can also download the RDF dumps to load into your own triplestore for heavier or offline work. For RAG, the usual pattern is to run structured SPARQL queries to pull precise facts and relationships, then turn those results into short natural-language passages you feed to the model, rather than embedding the raw triples directly.
This makes Bio2RDF best for questions that need connected, factual precision: entity lookups, and relationships between drugs, genes, diseases, and proteins, grounded in named biomedical identifiers. It complements free-text sources like PubMed abstracts rather than replacing them; the graph gives you the structure, the literature gives you the prose.
Two caveats. The licence varies by the underlying source dataset, so there is no single blanket permission covering the whole graph: check the terms of each dataset you rely on before shipping a commercial product. And some Bio2RDF releases lag the current versions of their source databases, so confirm you are working from a recent enough build for anything where freshness matters.
Related sources
ChEBI
A dictionary of small chemical compound molecular entities, with structure files and ontology files available for download. Particularly useful as a controlled vocabulary for chemical entity linking, where you match a mention in text to a standard identifier.
ChEMBL
A manually curated database of bioactive molecules with drug-like properties, bringing together chemical, bioactivity, and genomic data to support drug discovery. Holds close to 2.5M compound records on nearly 2M unique chemical structures, extracted mainly from the medicinal chemistry literature.
Crystallography Open Database
A collection of over 350,000 crystal structure files covering organic, inorganic, and metal-organic compounds, released into the public domain under CC0.
LeMaterial (LeMat-Bulk)
A harmonised, standardised merge of three major computational materials databases (Materials Project, Alexandria and OQMD) into a single format of roughly 6.7 million entries with consistent property definitions.