Skip to content

Releases

v0.3.2

Choose a tag to compare

@github-actions github-actions released this 29 Nov 21:07

Full Changelog: v0.3.1...v0.3.2

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 29 Nov 15:46

Full Changelog: v0.3.0...v0.3.1

v0.3.0

Choose a tag to compare

@rustyconover rustyconover released this 25 Nov 18:31

Full Changelog: v0.2.4...v0.3.0

v0.2.4

Choose a tag to compare

@github-actions github-actions released this 17 Nov 01:11

Full Changelog: v0.2.3...v0.2.4

v0.2.3

Choose a tag to compare

@github-actions github-actions released this 15 Nov 04:39

Full Changelog: v0.2.2...v0.2.3

v0.2.2

Choose a tag to compare

@github-actions github-actions released this 15 Nov 03:18

Full Changelog: v0.2.1...v0.2.2

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 15 Nov 02:48

Full Changelog: v0.2.0...v0.2.1

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 16:33

First release of vgi-rdf, a Python VGI worker that exposes persistent SQL tables and graph queries over one Oxigraph RDF dataset. Ordinary SELECT/INSERT/UPDATE/DELETE/CREATE TABLE/DROP TABLE from DuckDB or Haybarn work alongside SPARQL and graph traversal, and foreign keys become RDF edges kept consistent with SQL transactions.

Main surface

  • Native SQL tables stored as RDF: snapshot transactions, cross-process state, atomic commit, conflict detection, defaults, composite primary/unique keys, immediate foreign keys, RETURNING.
  • rdf_sparql(query, ...): local SPARQL SELECT / ASK / CONSTRUCT / DESCRIBE with typed term structs.
  • rdf_tables(schema_name := ''): table, column and foreign-key IRIs and graph IRIs.
  • rdf_rows(schema_name, table_name): typed SQL columns plus a stable __rdf_iri for joining graph results to rows.
  • rdf_neighbors(node, ...) and rdf_reachable(node, max_depth := 8, ...): bounded, cycle-safe traversal.
  • rdf_quads(graph_iri := ''): inspect stored named-graph quads.
  • vgi-rdf-admin: atomic Turtle/N-Triples/TriG/N-Quads import, drop-graph, export, backup, reclaim, status/integrity audit, transaction recovery.

Composed examples

The catalog now ships examples that combine functions:

  • per-table row-graph statement counts (rdf_tables + rdf_quads)
  • foreign-key edges materialized per relationship (rdf_tables self-join + rdf_quads)
  • incoming foreign-key references per row (rdf_rows + rdf_sparql)

plus a composed agent task (rdf_rows + rdf_quads + rdf_tables).

Quick start

Requires Python 3.13+ and uv.

git clone --branch v0.2.0 https://github.com/Query-farm/vgi-rdf.git
cd vgi-rdf
make build
-- stock DuckDB 2.0.0
SET allow_extension_repositories = 'allowed';
CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
    WITH PREFIX 'https://duckdb-extensions.query.farm';
INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;
-- (Haybarn 2.0.0rc11: INSTALL vgi FROM community; LOAD vgi;)

ATTACH 'rdf' AS rdf (
    TYPE vgi,
    LOCATION 'uv run --frozen vgi-rdf-worker',
    database 'data/example'
);
CREATE TABLE rdf.main.people (id INTEGER PRIMARY KEY, name VARCHAR NOT NULL);
INSERT INTO rdf.main.people VALUES (1, 'Ada'), (2, 'Grace');
SELECT * FROM rdf.main.people ORDER BY id;

database is a directory on the worker's machine. Omitting it uses VGI_RDF_DATABASE, or else a temporary database removed on DETACH.

Known limits

  • Single host with local durable storage and authenticated clients in one trust domain. It is not a distributed database and has no uptime SLA. The validated workload is 100,000 rows.
  • SPARQL is read-only: SERVICE is disabled and arbitrary SPARQL UPDATE is not available. RDF/XML, JSON-LD and remote fetching are not enabled for imports.
  • Native SQL CHECK is rejected by both tested engines before reaching the worker. Stock DuckDB 2.0.0 rejects DELETE ... RETURNING (Haybarn 2.0.0rc11 supports it). HUGEINT travels as DECIMAL(38,0).
  • Not implemented: self-referencing foreign keys, cascading actions, deferred constraints, generated columns, views, user indexes, arbitrary ALTER COLUMN. SQL predicates run in the host, so point lookups still scan projected columns. See the README's "Supported scope and engine limits".
  • Not published to PyPI. The signed wheel and sdist are attached to this release.

See CHANGELOG.md for the full 0.1.0 and 0.2.0 history.