Skip to content

docs(examples): optional children extension in wiki_data, and Beta classifier - #158

Merged
simontaurus merged 2 commits into
mainfrom
docs/wikidata-children-and-beta
Sep 15, 2026
Merged

simontaurus merged 2 commits into
mainfrom
docs/wikidata-children-and-beta

Conversation

@simontaurus

Copy link
Copy Markdown
Contributor
  • Development Status :: 3 - Alpha -> 4 - Beta, now that the binding has shipped in v1.0.0
  • examples/wiki_data.py: three commented blocks marked "Extension, step N of 3" that add a to-many link (children, wdt:P40) on top of the existing to-one father - a context term, a LinkList field, and a read

Verified against the live endpoint in both states. As shipped it is unchanged. With all three uncommented:

children are fetched as one batch
  stored IRIs: ['Item:Q80', 'Item:Q60677509']
  resolved:    Item:Q80 - Tim Berners-Lee
  resolved:    Item:Q60677509 - Mike Berners-Lee

The read is on father, not on Q80: Tim Berners-Lee records no P40 of his own, his father records two.

OoldField() carries no range= - the annotation names the target and x-oold-range is derived from it.

Three commented blocks adding a to-many link (wdt:P40) on top of the
existing to-one one: a context term, a LinkList field, and a read.

Verified in both states against the live endpoint - as shipped, and with
all three uncommented, where Conway Berners-Lee's two children resolve
in one call. Q80 records no children of his own, so the read is on the
father, which is the side that carries them.
@github-actions

Copy link
Copy Markdown
Contributor

Release preview

No version bump from the current commits (stays at v1.0.0). Use conventional commit types (feat, fix, ...) to trigger a release.

Changelog preview (truncated)

Preview via python-semantic-release and conventional commits.

@github-actions

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

Click to see benchmark comparison
📊 Benchmark Comparison (threshold: 1.3x)
============================================================

➖ Unchanged (within threshold):
  ➖ test_simple_dict_document_store: 0.0017s → 0.0017s (-0.1%)
  ➖ test_sqlite_document_store: 0.0018s → 0.0018s (+0.1%)
  ➖ test_local_sparql_store: 0.0327s → 0.0324s (-0.9%)
  ➖ test_oneof_subschema: 0.0519s → 0.0533s (+2.7%)
  ➖ test_enum_docstrings: 0.0451s → 0.0460s (+2.1%)
  ➖ test_subclass_inheritance: 0.0485s → 0.0483s (-0.4%)
  ➖ test_class_hierarchy: 0.0451s → 0.0462s (+2.5%)
  ➖ test_core[v1]: 0.0316s → 0.0315s (-0.1%)
  ➖ test_core[v2]: 0.0367s → 0.0382s (+4.1%)
  ➖ test_schema_generation[v1]: 0.0015s → 0.0015s (+0.2%)
  ➖ test_schema_generation[v2]: 0.0032s → 0.0033s (+3.2%)
  ➖ test_simple_json: 0.0006s → 0.0006s (-0.7%)
  ➖ test_complex_graph: 0.0013s → 0.0013s (+1.3%)

============================================================
Summary: 0 regressions, 0 improvements, 13 unchanged
============================================================

✅ No significant performance regressions

Threshold: 1.3x (30% slower triggers a regression warning)

Note: Benchmarks are informational only and won't fail the build.

💡 Tip: Download the benchmark-results artifact for detailed JSON data

@codecov

codecov Bot commented Sep 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@simontaurus
simontaurus merged commit a886758 into main Sep 15, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant