Skip to content

Changelog

0.2.1 (27 November 2026)

  • Listed in the official MCP Registry as io.github.cfuracao-academic/plainontology (server.json; the README carries the registry's ownership line). Each release now publishes the registry entry after PyPI
  • Dockerfile and glama.json for the Glama MCP directory; CI checks the image serves the MCP tools
  • The MCP server reports its version to clients (it sent an empty string)
  • Glama score badge in the README
  • README links the in-browser demo on Hugging Face Spaces

0.2.0 (27 November 2026)

Scope: a "Scope" section in the README and the sources page says what PlainOntology reads and where edge cases may fall outside it; the command line repeats it under any ? warnings.

New sources - postgres: and mysql: (MySQL and MariaDB): schema dumps read in their own dialect, or live databases read-only through SQLAlchemy. Live URLs come from an environment variable (postgres:env:DATABASE_URL); a URL with a password is refused so it is never saved in the file. CI checks that live and dump reading give the same result on real PostgreSQL 16 and MySQL 8.4 servers - All SQL sources now read table and column comments, CHECK constraints (as enums, min, max, length, pattern, or notes), views, triggers, non-default schemas, PostgreSQL domains and composite types, varchar(n) lengths, multi-column unique constraints, and join tables with extra columns - Dumps apply ALTER TABLE column changes (add, drop, rename, MySQL CHANGE/MODIFY) and table renames in order, so migration scripts work as a source - JSON Schema: references to other files, oneOf/anyOf unions (a parent concept the options belong to, or a merged enum), and constraints (minimum, maximum, minLength, maxLength, pattern, format, exclusive bounds)

Format 0.2 (every 0.1 file is still valid) - Lines under a property: label, synonym, note, definition, and the rules min, max, length, pattern, format - Language tags: label "Livre"@fr - unique (a, b)

Refresh - Renamed concepts and properties are recognised and your lines move with them (> in the report); plainonto rename for the cases it cannot guess - A property that is gone from the sources but holds your lines is kept - --no-renames on refresh and drift turns rename detection off - A warning (?) when two sources define the same concept, with the number of lines that differ; before, they were combined silently

Validate and export - validate enforces the rules and accepts any subtype for a nested object - New --to shacl export (tested with a SHACL engine) - LinkML: mixins for further parents, unique_keys, rules, multilingual labels (checked with the LinkML tools in CI) - Turtle: language tags, labels on properties, owl:hasKey

Upgrading from 0.1.x: in enums you wrote yourself, a bare number now means a number; write text codes that look like numbers in quotes (enum("1"|"2")). Codes with leading zeros (01) stay text either way. Extracted enum lines are rewritten once on the first refresh (a union enum with values repeated across branches may also change order once). singular concept names are better (movies is Movie, not Movy; shelves is Shelf). A concept whose name changes this way is matched by rename detection when it has two or more properties; otherwise the first refresh reports it as removed (or kept, with your lines) and added. Run plainonto drift after upgrading and use plainonto rename FILE Old New where needed.

Before release: every remaining finding fixed (no known issue is carried over to a later version) - With PLAINONTO_SOURCE_ROOT set, every command and the MCP server keep the .onto file (and a record file) inside it - A property renamed in the source stays where the old one was, next to the comment above it - Prisma's many-to-many tables (_PostToTag, columns A and B) give tags -> Tag many - Enums keep numbers and text apart: a bare number such as 1 or 2.5 is a number, quoted values and codes with leading zeros (01) are text (extracted text codes made of digits are always written quoted, enum("01"|"10")), and a mixed JSON Schema enum ([1, 2, "max"]) is typed value by value; validate and SHACL follow, and a validate error says which is which - A foreign key declared on the column and again with ADD CONSTRAINT is one relation; dropping either declaration keeps the other (the usual add, validate, drop swap) - mysqldump's PARTITION BY keeps the table's primary key and becomes a note (comments in MySQL dumps are set aside first, so a comment before PARTITION BY or inside an ALTER TABLE changes nothing; fast on long comments); partition maintenance (ADD, DROP, TRUNCATE ... PARTITION and the rest) is left out quietly - A property kept because the match was unclear shows the rename command on every run - A file of blank lines keeps its size - ALTER VIEW ... RENAME TO, RENAME COLUMN and AS SELECT ... are applied, other ALTER VIEW options are quiet; ALTER INDEX ... RENAME TO stays in its schema; MySQL ALTER TABLE t RENAME AS u works; each part of a comma-separated ALTER TABLE counts - MySQL stored routines (procedures, functions, triggers, events) are set aside before reading, with any DELIMITER ($$, //, ##, ;;): a table after a routine is no longer lost; trigger notes stay - CREATE TABLE b LIKE a (MySQL) keeps the index names, so a later DROP INDEX finds them; dropping an ordinary (not unique) index is quiet - CONVERT TO CHARACTER SET, table options, partition maintenance, TABLESPACE, identity and column storage settings never warn

Fixes from a ninth independent review - PostgreSQL ALTER TABLE t RENAME col TO new (without the word COLUMN) renames the column, not the table - An enum column changed by ALTER COLUMN ... TYPE follows a later ALTER TYPE ... ADD VALUE (Prisma's enum migrations) - MySQL CREATE TABLE b LIKE a copies the table - Refresh and rename write normally when the first concept goes and the header ends in a comment - Any ALTER TABLE, ALTER INDEX or RENAME statement that is not applied is a ? warning, except ones that change nothing in the file (OWNER TO, ENABLE ..., SET (...) and similar); unnamed ADD CHECK, INHERIT and ALTER INDEX ... RENAME TO are applied, and IF EXISTS and ONLY are read in either order - An apostrophe in a SQL comment no longer upsets the reading of MySQL float unsigned - tests/test_fuzz.py runs on every push: random files written and refreshed with people's edits, which would have caught the regressions of the seventh and eighth reviews

Fixes from an eighth independent review - Refresh and rename no longer stop with "refusing to write" when the first concept goes and the next one has a comment banner with a blank line under it - A column-0 comment among comments under a property keeps its order - Migration scripts: MySQL RENAME TABLE a TO b and RENAME INDEX, PostgreSQL ALTER TABLE ... SET SCHEMA and RENAME CONSTRAINT are applied; an ALTER TABLE on a table the file never created is a warning, not a new concept - DROP INDEX without a schema finds the index in another schema when only one has it (after SET search_path) - MySQL: float unsigned gives min 0 and quoted text is never touched; DROP COLUMN on a column of a unique key keeps the rest of the key unique - With PLAINONTO_SOURCE_ROOT set, .onto files must be inside it too

Fixes from a seventh independent review - A comment written at the start of a line above a concept stays that concept's comment; it is no longer pulled into the concept before it - Comments are written at the level of the lines around them, so a comment between two properties can never end up under one of them; save now also refuses a write that would move a comment - A comment above a property the sources drop stays in its concept - Lines of yours handed over from a line that gives way are merged (yours win), so the first refresh writes the final result - Migration scripts: a dropped or re-created table, a dropped column and a renamed column keep the constraint names right; DROP INDEX schema.name touches only that schema - CHECK (rule OR col IS NOT NULL) stays a note - A network-share source is refused before it is touched when PLAINONTO_SOURCE_ROOT is set - MySQL float unsigned and double unsigned columns are read; leaves stays Leave

Fixes from a sixth independent review - Writing a file never moves a line under a different concept or property: statement lines are always written two spaces per level, and save refuses any write whose structure would read back differently - Comments at the start of a line and indented comments keep their order - MySQL: unsigned (min 0) goes with the column through CHANGE and MODIFY - DROP INDEX finds unnamed PostgreSQL indexes by their default name, and keeps a column unique while another constraint still makes it so - CHECKs written rule OR col IS NULL and reversed comparisons (8 = char_length(c)) become rules - A property kept because the match was unclear names the possible new names and the rename command - JSON Schema references to absolute paths or network shares are not followed - More singular names: menus, diagnoses, vertices, matrices, shelves, knives and similar

Fixes from a fifth independent review - A concept renamed in its source (a retitled Pydantic model) gets its new header; before, the old name stayed and every later drift reported the rename again - A person's line always wins over an extracted line: only a [proposed] line gives way when the sources start producing its key - A person's relation or is_a to any renamed concept is reported (?), not only when that concept held the person's lines - A [proposed] concept the sources now produce is reported, with how to accept it; a concept rename is reported once - Migration scripts: DROP INDEX and PostgreSQL ALTER TYPE ... ADD VALUE / RENAME VALUE / RENAME TO are applied - dbt: a test on an expression is a note, not a made-up property - Singular names: movies, cookies, warehouses, caches, aliases, quizzes and similar come out right; news, canvas and atlas stay as they are - MySQL unsigned gives min 0; char_length(x) = 8 gives length 8..8; ~* gives a case-insensitive pattern; citext is text - Two OpenAPI sources no longer warn about the shared Operation concept; a repeated warning is shown once - The Action only updates a pull request comment it posted itself

Fixes from a fourth independent review - A person's lines are never lost when a proposal and an extracted line describe the same property (for example after rename merges two concepts): the lines under the one that gives way move to the one that stays - JSON Schema and OpenAPI: an inline object never takes the name of a definition; a named oneOf/anyOf of objects in $defs or components/schemas becomes a concept its options are a kind of; schemas in other YAML files are read; a document that is a list describes its items; form and other non-JSON request bodies are read, and a body without a schema is a warning; a boolean minimum is a note, not a bound - validate accepts a record's own field names (first name, @id) as well as the property names they became - SQL: a CHECK on a foreign key column is kept as a note; a foreign key that is the key or unique is a unique relation; composite foreign keys in unique sets name the relation; several length bounds keep the strictest and big integer bounds stay exact; a table linking to a join table, and the join table, stay concepts; unique indexes with WHERE or on an expression are notes - PostgreSQL: unquoted names fold to lower case; E'...' strings are read; MySQL: mysqldump's _utf8mb4'...' strings are read - A changed concept tag (a renamed table behind the same concept) is drift and is written - SHACL: a subclass repeats its parents' property shapes except the ones it redefines - A UTF-8 byte order mark and blank lines at the start of a file are kept - Live databases: a host that does not answer fails after 10 seconds

Fixes from a third independent review - Nothing extracted is dropped silently any more: join tables (also to a table not in the file, which stays a concept), tools, OpenAPI parameters and bodies, and dbt relations whose names clash get a new name with a warning - JSON Schema: a document that is only a $ref to one of its definitions (Pydantic's output for recursive models) follows it; a document named like one of its definitions keeps both; required covers properties declared inside allOf - PostgreSQL: LIKE, CREATE TABLE ... AS and INHERITS (as is_a) are read, from dumps and live databases; a domain's CHECKs and NOT NULL apply to its columns (CHECK (VALUE > 0) becomes min 1) - Migrations: a CHECK follows a renamed column and goes with a dropped one; constraints declared on a column, and CHECKs under PostgreSQL's and MySQL's default names, can be dropped; MySQL DROP CHECK - A column the sources add replaces a waiting [proposed] line for it; an extracted line beside your override is removed, so the override takes effect - A person's notes under an overridden property are no longer copied twice when the source renames it - Trailing spaces, indented comments and blank lines at the end of the file are kept on every write - validate ignores proposed parents, says so for a proposed concept, compares big integers exactly, accepts any size of integer for decimal, and reports a pattern it cannot use instead of crashing - SHACL: a subclass's shape includes its parents' (sh:node), so inherited properties are checked with the shapes file alone; MySQL's case-insensitive patterns use sh:flags - LinkML: every pattern is exported (all_of), control and line-separator characters are escaped, and an enum is never named like a class - Enum values holding a line separator are quoted; dotted concept names work in rename and propose - The SQLite .sql time limit covers the whole script; a dbt project folder must stay inside PLAINONTO_SOURCE_ROOT; an infinite dbt bound is ignored - The Action updates its pull request comment once the drift is fixed

Fixes from a second independent review - rename never drops a line of yours: merging into an existing name keeps every line (clashes are kept twice and flagged by check), renaming to the same name is refused, and a property can only be renamed within its concept - Overriding an extracted line with your own keeps your lines under it; an agent's proposal can no longer replace an existing line - Migration scripts: ALTER COLUMN (type, NOT NULL), DROP TABLE, DROP CONSTRAINT / FOREIGN KEY / INDEX (by name, including PostgreSQL's default names), and a re-created table are applied; comments follow later renames; a constraint that cannot be found is a warning - Several CHECKs on one column: the strictest bounds win and every pattern is kept (a property can have several pattern lines, all must match); MySQL patterns are case-insensitive like its default collations - Name collisions never drop a line: a column and a foreign key, two columns, two JSON Schema properties, two schemas called the same in different files, an operation and a schema: each gets its own name, with a warning - JSON Schema $anchor references resolve; decimal exclusive bounds and non-integer lengths are handled - Rename detection only acts on clear, uncontested matches, and follows a foreign key whose target table was renamed too - Names may use combining marks (Hindi, decomposed accents); café becomes Café - Header lines, comments at the start of a line, blank lines and CRLF line endings are kept as typed; a file without a header gets none added; check flags a prefix declared twice - Proposed lines do not count in validate or the exports until a person accepts them - validate: $ and formats no longer accept a trailing newline, NaN is not a number, an unknown concept exits 2, and dates behave the same on Python 3.10 - Exports: big integers stay exact; LinkML keys such as Yes, ON and Null are quoted - SQLite: a stale view is skipped with a warning; a runaway .sql file is stopped after 10 seconds; multi-level partitions fold into the top table - Reports escape line breaks in names; output is UTF-8 when piped (Windows); drift and check without files skip only hidden folders, node_modules and virtual environments - The Action installs the PlainOntology version matching its tag, switches off live databases and confines source files to the checkout unless told otherwise, and uses a random output delimiter

Fixes from an independent review before release - Nothing PlainOntology writes can be unreadable: numbers never use exponents, every line-separator and control character in a string is escaped, database regexes are translated to Python (\y, POSIX classes) or kept as a note, names may start with a letter in any script, and a final check refuses to write a file that would not read back - A person's lines are written back exactly as typed, including spacing and backslashes; unknown escapes such as \d are kept, and blank lines and the header order are kept - Enum values with |, brackets or quotes are written quoted: enum(S|"M (medium)"|"L|XL") - A property or concept gone from the sources but holding your lines stays [auto] and is reported on every run; a concept header you wrote stays yours; lines pointing to a renamed concept are listed, and plainonto rename updates them - UTF-8 byte order marks are accepted in every source and in .onto files; a source that produces nothing, a skipped statement, and two tables with the same concept name are warnings (the second table gets its own name) - Security: passwords in URL query strings are refused; SQLite .sql sources cannot attach or write other files - Every failure exits 2, never 1; the Action keeps error output out of the report, keeps one pull request comment up to date and skips forks; the drift hook runs on every commit; drift and check without files check every .onto file - MCP propose refuses lines that would break the file and can propose under a property (Concept.property) - validate treats key as required and checks dates strictly on every Python version; dbt date ranges and exclusive ranges become notes; LinkML enum and prefix names no longer collide - CI builds the wheel, installs it in clean environments and uses it

Tested on real schemas (Pagila and Sakila, in CI at pinned versions), which led to: - PostgreSQL partitions fold into their parent table with a note, and foreign keys declared on partitions carry up - PostgreSQL 18 virtual generated columns are read - A table the parser rejects is read column by column; anything skipped is reported as a ? warning instead of disappearing - Function bodies with $1 placeholders no longer crash the dump reader - MySQL views with DEFINER, SQL SECURITY or ALGORITHM and PostgreSQL materialized views (WITH NO DATA) are read; any CREATE TABLE or CREATE VIEW that still cannot be read is a warning, never silence

More sources - openapi: (OpenAPI 3.x, Swagger 2.0; JSON or YAML): schemas become concepts, operations become concepts with parameters, body and returns - dbt: (manifest or project folder): models, seeds, snapshots and sources; tests and constraints carry over as flags, enums, relations and rules; lineage and semantic-layer measures as notes

Tooling - GitHub Action (uses: cfuracao-academic/plainontology@v0.2.0): drift as a check, job summary, optional pull request comment - pre-commit hooks plainonto-check and plainonto-drift; check and drift take several files - VS Code extension for .onto syntax highlighting (editors/vscode) - Documentation site (MkDocs) with a tutorial, sources, CI, agents, performance and the file format - Benchmark script; 5,000 tables extract in about 7 seconds - ruff, mypy and a coverage floor in CI; code of conduct, security policy, issue and pull request templates - The file format has a stated versioning policy (SPEC.md)

Other - Irregular plurals: people becomes Person - New extras: postgres, mysql, all

0.1.1 (2026-11-26)

  • README: demo GIF drawn from real command output, and a "Try it" line (now also shown on PyPI)
  • README: badges and Zenodo DOI; DOI added to CITATION.cff
  • No code changes

0.1.0 (2026-11-26)

First release.

  • Plain text format, version 0.1 (see SPEC.md)
  • Extractors: sqlite (database or .sql file), jsonschema, tools (Anthropic, OpenAI and MCP tool definitions)
  • Commands: init, refresh, drift, check, export, validate, mcp
  • Exports: Turtle (OWL + SKOS), LinkML
  • MCP server: list_concepts, describe_concept, search, validate_record, drift, and opt-in propose