Skip to content

Releases

v0.6.0

Choose a tag to compare

@rustyconover rustyconover released this 25 Nov 18:33
  • Require vgi-python >=0.55.2,<0.56 (protocol vgi.v3 / 3.4). This release
    needs Haybarn 2.0.1, whose community vgi extension speaks 3.4; Haybarn
    2.0.0 loads a 3.3 extension that cannot attach it.
  • SQL tests run on haybarn-unittest 2.0.1rc3.
  • serve extra = vgi-python[http,oauth]; the Docker image installs it, so
    it runs in Orchard hosted mode (VGI_ORCHARD_HOSTED=1 with VGI_JWT_ISSUER,
    VGI_JWT_AUDIENCE, VGI_JWT_JWKS_URI and VGI_SIGNING_KEY). The HEALTHCHECK
    uses HEAD /health, which stays anonymous in hosted mode.
  • README quick-start tags point at v0.6.0; README notes the Haybarn 2.0.1
    requirement.

v0.5.1

Choose a tag to compare

@rustyconover rustyconover released this 17 Nov 00:08

Full Changelog: v0.5.0...v0.5.1

v0.5.0 — Wikidata statements and graph queries

Choose a tag to compare

@rustyconover rustyconover released this 13 Nov 14:56

Connect Wikipedia articles to Wikidata structured knowledge and query relationships from SQL.

  • Resolve articles to Wikidata IDs with wiki.main.wiki_entity.
  • Batch entity lookups with labels, descriptions, aliases, sitelinks and revision IDs, including shared mul labels.
  • Read full statements, qualifiers and reference sources through wiki.wikidata.statements, qualifiers and statement_references. Preserve ranks, unknown/no-value semantics, exact quantities, date precision and raw values.
  • Run read-only SPARQL SELECT/ASK queries, including property paths. Results preserve RDF term kind, lexical value, datatype and language.
  • Bound requests and results, honor retry delays, cache responses, and serialize complete scan snapshots across transports.

The existing Wikipedia search and summary functions keep their names and behavior. Includes a runnable fixture/live demo and detailed API documentation.

Validation: 97 non-live tests; stock DuckDB 2.0.0 with signed VGI; Haybarn SQL over subprocess, HTTP and Unix sockets; strict vgi-lint at --fail-on info with zero findings. The installed worker wheel was also exercised outside the source checkout. Live queries worked; public SPARQL availability can vary.

Requires Python 3.13+ and a VGI extension supporting protocol 3.3. The lockfile resolves vgi-python 0.51.1. SPARQL executes at bind time to discover columns, so prepared plans can retain their bound result. This release is a read-only connector, with bounded in-memory results.

Worker code is MIT. Wikipedia article text is CC-BY-SA; Wikidata structured data is CC0. Custom endpoints may have different terms.

Install from this tag using uvx --from git+https://github.com/Query-farm/vgi-wikipedia@v0.5.0 vgi-wikipedia-worker, or use the wheel/source distribution attached by the release workflow. No PyPI publication is configured.

v0.4.0

Choose a tag to compare

@rustyconover rustyconover released this 12 Nov 16:06

Speaks VGI protocol 3.3 (vgi-python 0.51.0) and requires the current VGI DuckDB extension; 3.2 extensions are incompatible. No change to the worker's SQL surface; the catalog descriptions were reworded to satisfy vgi-lint 2.5.0.

v0.3.0

Choose a tag to compare

@rustyconover rustyconover released this 10 Nov 16:32

Ported to VGI protocol 3.2. SDKs: vgi-python 0.50.0, vgi-rpc 0.53.1. Catalog metadata updated for vgi-lint-check 2.x: short vgi.title names ("Wikipedia", "Wikipedia functions") and a one-sentence catalog vgi.subtitle (VGI147/VGI148); vgi-lint now scores 100/100.

v0.2.0

Choose a tag to compare

@rustyconover rustyconover released this 07 Nov 00:55

Ported to VGI protocol vgi.v3 / 3.1, which requires haybarn 2.0 (the community vgi extension for haybarn 2.0). SDKs: vgi-python 0.49.0, vgi-rpc 0.53.1. CI now runs on haybarn 2.0 and uses vgi-lint-check v2.

v0.1.0

Choose a tag to compare

@rustyconover rustyconover released this 21 Jul 15:44

First release of vgi-wikipedia — Wikipedia / MediaWiki full-text search and page retrieval as VGI DuckDB SQL functions over the free official MediaWiki API (no key).

Install

  • Container: docker run -p 8000:8000 ghcr.io/query-farm/vgi-wikipedia:0.1.0 (HTTP; stdio arg for the DuckDB-spawned transport)
  • Python wheel/sdist attached below (pip install vgi_wikipedia-0.1.0-*.whl)

Functions

  • wiki_search(query, lang :=, count :=, max_pages :=, api_url :=) — ranked full-text search (table function)
  • wiki_page(title[, lang]) — a page's plain-text summary extract (scalar)
  • wiki_page_summary(title, lang :=, api_url :=) — a page's rich summary row (table function)

Retrieved article content is CC-BY-SA; attribution and share-alike are the caller's responsibility.