Skip to main content

iladub — íl · dub, the document-carrier

iladub

The document-carrier — compiling human documents into knowledge machines can read.

iladub (𒅍𒁾 · Sumerian íl, "to lift, to carry, to bring forward" + dub, "clay tablet, document") compiles human-addressed documents — reports, notes, papers, contracts, in any format — into FAIR, contract-defined semantic knowledge graphs. It is the reference implementation of the ET(K)L method, whose persistent namespace is https://w3id.org/iladub/etkl.

There is no unstructured data — only human-addressed structure a machine has not been taught to read. iladub recovers it and carries it forward, without flattening it into tokens at the input or rows at the output. See the manifesto → https://iladub.dev/manifesto/

[!NOTE] Early development — APIs are not yet stable.


The first documents

A late-4th-millennium-BC Sumerian proto-cuneiform clay tablet, a barley account held in the Louvre (AO 29562)

A late-4th-millennium-BC Sumerian account tablet (Louvre, AO 29562) — a barley ledger possibly bearing Kushim, the earliest personal name known to history. Photo Poulpy, crop Zunkir, via Wikimedia Commons, CC BY-SA 3.0.

More than five thousand years ago, in the city-states of Sumer, people pressed a reed stylus into wet clay and made the first marks that were not pictures but records. The earliest of these tablets were not poems or laws — they were accounts: so many measures of barley, so many head of cattle, owed by whom, to whom. Writing was born as an instrument for keeping count, and the scribe who kept it had a title built from the same root iladub carries: dub-sar, the tablet-writer.

That clay did something no human memory could. It lifted knowledge out of a single mind and set it down in a durable, portable form — knowledge that could outlive the knower, travel without them, and be read by someone who had never met them. The Sumerian verb íl means exactly this act: to lift, to carry, to bring a value forward in a ledger. The tablet was the first document — and the document was, from its very first day, a thing made by humans, for humans. Reading it required a trained scribe. To anyone else, the wedges in the clay were just marks.

The same problem, five thousand years later

We never stopped. We still publish for each other in human-shaped documents — papers, reports, slides, consultation notes, contracts, PDFs. The medium changed; the audience did not. A document is written so that a person can understand it.

To a machine, a modern PDF is what a clay tablet was to a non-scribe: marks without meaning. Optical character recognition and large language models can now recover the text and describe the pictures — but the text and the pixels were never the point. The point is the knowledge: the concepts a document is about, their identities, and how they relate. A table of lab values means nothing without the prose around it; the same number means different things in different contexts. Digesting a document is not reading its characters. It is reconstructing the web of meaning a human author assumed you already had.

What it takes for a machine to read a document

Recovering that web of meaning needs more than a flat list of facts. It needs the right level of structure:

  • a triple says one thing about two things — :patient :hasCondition :diabetes;
  • a hypergraph lets one relation bind many participants at once — a single clinical finding tying patient, observation, value, and time together;
  • a metagraph lets relations themselves become things you can talk about — statements about statements, evidence about a claim, a decision about a fact;
  • a holonic graph sits on top of these: every unit of knowledge is a holon — at once a whole and a part — carrying its own interior (what it asserts), boundary (the rules that govern it), context (who holds it, when, with what confidence), and the way it composes into larger wholes.

Knowledge is always held by someone, about something, in a context, with a degree of confidence — and it nests. Only at the holonic level, built on top of meta- and hypergraphs, can you express that and not just the surface of the page. That is the level of semantics a document actually lives at, and the level iladub compiles toward: concepts grounded in shared vocabularies, validated against an explicit contract, every admission an accountable, auditable decision, every claim traceable back to the region of the source it came from.

ET(K)L — the K is an argument

This is why the method is not ETL but ET(K)LExtract, Transform-with-(K)nowledge, Load. The parenthetical K is the whole claim. In ordinary pipelines, semantics are a downstream afterthought: extract raw data, transform it with hand-written mappings, load it, and then maybe align it to an ontology. iladub inverts this. Knowledge engineering is the first milestone, not the last:

transform(data, knowledge)   ←  knowledge is the argument, not a later dashboard layer

A semantic data contract declares the target meaning up front, and a knowledge module is passed as an argument of the transform — never reconstructed by mappings at the end. Knowledge enters first, and it enters as input. That is the K.

What documents will always be

Documents written for humans have always existed, and they always will — now written by humans, and increasingly by machines. The format will keep changing; the human-shaped nature of the document will not. And a document made for humans will always be a challenge for a machine to truly digest — not the text, not the images, but the concepts and how they relate: the knowledge behind the page.

Meeting that challenge is not a matter of bigger models reading more characters. It is a matter of expressing knowledge at the level it actually has — holonic graphs, on top of meta- and hypergraphs — and compiling human documents into it. That is iladub's work, and it is the oldest work there is: to lift the knowledge out of a human-shaped document and carry it forward into a durable, shareable form — as the scribe once carried the count forward into the clay.


What iladub does

  • Compiles a whole document (prose, tables, figures) into a structure-preserving intermediate, then lets a semantic contract decide what becomes a typed object, from wherever it lives.
  • Asserts only what it can ground in a provided ontology; everything else is proposed, never faked, and may enter the grounded graph only through an accountable promotion decision.
  • Carries provenance to the page and converges table, prose, and figure mentions onto the same concept IRIs.

See the docs at iladub.dev — including the architecture, the assertion/proposition epistemics, and the holonic interaction model.

Install

pip install iladub

Quickstart

# compile a document against a contract (knowledge-first)
iladub run \
  --contract  examples/patient-contract.ttl \
  --shapes    examples/patient-shapes.ttl \
  --knowledge examples/patient-knowledge.ttl \
  --input     examples/sample-admission.txt
import iladub
print(iladub.__version__)

A worked end-to-end demonstrator — a synthetic German consultation report compiled into a connected FHIR graph with a decision recorded over it — lives in demo/ (python demo/assemble_fhir.py).

The project family

iladub is the namespace root and the owned artifact — iladub = a thin core + etkl + dec:

  • iladub (thin core) — the assertion/proposition epistemics (assert only what you can ground; propose the rest; never let a proposition pass as an assertion).
  • etkl — the knowledge-first K-transform that compiles a raw document into a grounded holon conformed to a destination schema (the contract).
  • dec — decidability/decisionality (DecisionHolon, escalation, risk); a portable extension of the W3C Holon CG substrate (HGA).
  • HGA (holon:) — the external holon substrate; consumed via alignment, never cloned.

Development

git clone https://github.com/iladub/iladub
cd iladub
pip install -e ".[dev]"
pytest

Citation

If you use iladub or the ET(K)L method, please cite it — see CITATION.cff.

License

This project is dual-licensed:

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iladub-0.0.3.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iladub-0.0.3-py3-none-any.whl (137.0 kB view details)

Uploaded Python 3

File details

Details for the file iladub-0.0.3.tar.gz.

File metadata

  • Download URL: iladub-0.0.3.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for iladub-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5410c132948c5172d49a072ca72188085162d9a652621b33a1e1160d3cd7b5f2
MD5 f51daf54b97d4ed558f53e4a615decbc
BLAKE2b-256 dd013225465542292ed745da507742132e052bf15825262c8ec899787db6d303

See more details on using hashes here.

Provenance

The following attestation bundles were made for iladub-0.0.3.tar.gz:

Publisher: release.yml on iladub/iladub

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file iladub-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: iladub-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 137.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for iladub-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a22f1ecf0e35bd37fc83600ed7e9c7fc12e3a50d453df6080aae7816cc086488
MD5 b4b87bd327f3a6a207acee446f6e5c02
BLAKE2b-256 37e6cf014c8aa4eb20f2920ef3a6d9a8f136064c45d805c8d111c05e0bc50d92

See more details on using hashes here.

Provenance

The following attestation bundles were made for iladub-0.0.3-py3-none-any.whl:

Publisher: release.yml on iladub/iladub

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page