Sparql tool – connect LLM to knowledge graphs

A classic study room with shelves of books, a gavel, and Lady Justice figurine on a green table.

Talk to knowledge graph – sparql-tool

Use LLM.: Hallucinations (sometimes good for creativity), Outdated knowledge, no access to your data ( trained on public knowledge).

Solutions:

Fine tuning – retrain the model on domain data

RAG –

Search: look things up in real time. Claude code looks at searched doc.

Vector embeddings: semantic similarity search over documents.

Knowledge graphs: structure queryable machine readable knowledge

Two main flavors:

Property graphsQ: nodes and edges carry key value properties

Nodes and edges carry properties – Neo4q, TigerGraph

RDF graphs: everything is triple – Subject – predicate – object

Engines

Datasets:

Everthing is URI

So for example for age – do not put the exact age – put the date of birth and then compute the age.

The RDF ecosystem:

RDF

OWL (ontology language

Triple stores – databases for RDF

Ontologies (formal schemas

SPARQL – language for RDF

Problem with RDF

Low traction for academia

steep learning curve

SPRQL is tedious by hand

Ontologies are complex

LLM models have this formal knowledge baked in (claude etc)

They understand RDF, OWL, SPARQL, ontologies

How to use them effectively.

Sparql-tool

Democratizes RDF

Three components : skill, agent, CLI tool

CLI does not need LLM

This is replacing MCP.

Websearch sometimes does not work – because there was semantic loss on what was being searched for

By the way, people are complaining because people aren’t going to websites, they are going to LLM’s.

DBPedia KG – they extract wikipedia very often…

Try Kevin Bacon algorithm and show hops is one way to test things.

Biotech : Uniprot

Uniprot KG. (they publish about proteins)

What proteins are associated with Alzhiemer’s

So then the better question is tho what protein intearctis with what proteins ..Takes long.

Another one is used – IntAct…

Have to know where the dataset came from ?

Pokemon: Knowledge graph.

Community graphs – has 100k entries. Used that as such.

Similar Posts

  • |

    Open source protein models

    A company called Profluent (profluent.bio) has been developing protein models that can be used for designing new proteins (https://www.nature.com/articles/s41587-022-01618-2), modeling of new CRISPR-Cas sequences (https://www.nature.com/articles/s41586-025-09298-z) and developing LLM for protein generation (https://www.biorxiv.org/content/10.1101/2025.11.12.688125v1.article-info). What is amazing is that they have open sourced all their models and Profluent-E1 is available in GitHub to download and use. (https://github.com/Profluent-AI/E1)…

  • AI in subjective domains

    I am exploring how AI can scale expert feedback in subjective domains with a hobby project. After visiting art museums around the world, I kept coming back to a familiar challenge: how do you consistently evaluate something inherently subjective? After having created medical devices in pain, the idea was worth exploring. It’s a question that…

  • |

    Fitness landscape for antibodies (Flab2)

    There have been many AI models to predict the structure of proteins, especially antibodies. There are several key aspects to developing antibodies as drugs beyond binding to the target of interest. These are : thermostability, expression, aggregation, binding affinity, pharmacokinetics, polyreactivity and immunogenicity. There have been many models available such as IgLM, ProGen2, Chai-1, ESM2,…

  • DeepSpot

    Kalin Klonchev – the winner of a competition for AI based data analysis from Broad in 2024 had also created a tool called DeepSpot. Worth looking at for spot analysis of H&E sections by converting a full H&E slide pictures to “spots” which are analyzed. Some good links: DeepSpot paper: https://www.medrxiv.org/content/10.1101/2025.02.09.25321567v1 DeepSpot GitHub repository: https://github.com/ratschlab/DeepSpot…

  • Text from Image

    Starting with a base image, it is possible to generate a description. An AI (Qwen-3-VL) simple description : This is a simple, hand-drawn black-and-white sketch of a person’s upper body. Here’s a breakdown of the key elements: Hair: Long, flowing hair depicted with two smooth, curved lines extending from the top of the head down…