# diffbot-dql

> Claude/Codex skill by [@diffbot](https://omgskills.com/library/diffbot/index.md) · 5 stars · Updated 2026-09-28

Query the Diffbot Knowledge Graph directly with DQL (Diffbot Query Language). The general-purpose layer beneath the entity-specific Diffbot skills — use it for any entity type or query shape they do not cover: products, patents, job posts, facet aggregations, ontology exploration, and cross-entity queries. Triggers on: dql, query knowledge graph, search diffbot, diffbot kg, ontology lookup, facet query, entity types, raw dql

Tags: agent-skills, ai, coding, crawler, entity-resolution, extract, extraction, knowledge, knowledge-graph, knowledge-graphs, research, skills, websearch, websearch-agent, websearch-api

## Install

```sh
git clone https://github.com/diffbot/diffbot-skills /tmp/diffbot-skills && ln -s /tmp/diffbot-skills/skills/diffbot-dql ~/.claude/skills/diffbot-dql
```

## From README

Diffbot Knowledge Graph Search (DQL) Query the Diffbot Knowledge Graph via the DQL API. Translate the user's plain-text request into a DQL query, execute it through the db dql CLI, and display formatted results. The db dql CLI All work in this skill is driven by the db CLI from the diffbot-python library. It owns token loading, URL encoding, HTTP, ontology lookup, and parallel probing. The skill runs the CLI from a dedicated virtualenv it owns at /.diffbot/venv — it does not assume db is on PATH or that any other venv exists. The Step 1 bootstrap creates the venv and installs the library if missing. Always invoke with the fixed path /.diffbot/venv/bin/db — never bare db and never another venv's db, so the permission allow rule matches and no PATH assumption is made. Throughout this document db is shorthand for /.diffbot/venv/bin/db; expand it to the full path in every actual bash command.

## Links

- HTML page: https://omgskills.com/library/diffbot/diffbot-skills/skills/diffbot-dql/
- GitHub: https://github.com/diffbot/diffbot-skills
- Author: [@diffbot](https://omgskills.com/library/diffbot/index.md)

## More from this repo

- [diffbot-crawl](https://omgskills.com/library/diffbot/diffbot-skills/skills/diffbot-crawl/index.md) — Crawl a website or manage Diffbot crawler jobs.
   - [@diffbot](https://omgskills.com/library/diffbot/index.md) · 5 stars
- [diffbot-deals](https://omgskills.com/library/diffbot/diffbot-skills/skills/diffbot-deals/index.md) — Used to search funding rounds, investments, and acquisitions in the Diffbot Knowledge Graph by date, deal size, round...
   - [@diffbot](https://omgskills.com/library/diffbot/index.md) · 5 stars
- [diffbot-entities](https://omgskills.com/library/diffbot/diffbot-skills/skills/diffbot-entities/index.md) — Identify and resolve named entities in text using the Diffbot NLP API.
   - [@diffbot](https://omgskills.com/library/diffbot/index.md) · 5 stars
