Datasets:
wikivoyage: label each page CC BY-SA 3.0 or 4.0 by its last revision (v0.2.6, v2#57)
What and why
Relabels wikivoyage (Polish Wikivoyage) per record: CC-BY-SA-3.0 or CC-BY-SA-4.0 by the page's last revision. v0.2.0-v0.2.5 labelled every row CC-BY-SA-3.0. Part of the October 2026 rights audit, slayerlabs/polish-dynaword-v2#57 (artifacts/rights_audit_2026-10/reports/wikis_ugc.md, reports/citations.md L17-26).
Rebased onto main b35baa4 (after #68 wikipedia, #77 wikinews, #71 eurlex and #79 wikibooks merged), so it no longer carries #68's commits or the merge commits; DROPPED_PAGES came to main with #79. Two commits: the wikivoyage labels (from 71c3d55) and the two withheld pages (from 0f6dee0). Every file is identical to the pre-rebase head 0f6dee0 except src/sources.py, src/rights.py and artifacts/source_findings.md, where main's other sources are kept and the wikivoyage changes are the same. The lawyer's answer to E1 (wiki 3.0/4.0 labelling, slayerlabs/polish-dynaword-v2#56) is still pending; the labels apply the cutover dates of the rights-audit task (v2#57) and are not a legal opinion.
Two pages are withheld (maintainer approval 2026-10-06, relayed by the coordinator): wikivoyage_1219 Barcelona/Sagrada Família and wikivoyage_910 Królewiec, the two confirmed copyright pastes of the follow-up check below. They are listed with one reason each in DROPPED_PAGES["wikivoyage"] (src/rights.py, same shape as COPIED_PAGES); fetch_wikimedia.py prepare skips them, stops if a listed id is not reached (not found, a redirect, not namespace 0, empty, short or a duplicate), and records them with their reasons in wikivoyage.build.json. A page whose text is a copy of a withheld one is still dropped as a duplicate.
The v0.2.5 parquet has no last-revision timestamp, so the source is rebuilt from the official Wikimedia dump plwikivoyage-20260601-pages-articles (sha1 1a790d37… matched to the dump's sha1sums.txt) by src/fetch_wikimedia.py. Checked against the v0.2.5 parquet: same schema; the text multiset is v0.2.5's minus the 2 withheld pages (the first rebuild of this PR matched v0.2.5 exactly; the current parquet equals that rebuild minus the 2 rows, checked row by row); only license, id, author, created and added change.author = Wikivoyage contributors, <page URL> (v0.2.5: empty); created = the last-revision date (v0.2.5: one range string on every row); the parquet added column is 2026-07-19 (v0.2.5: 2026-06-15; the registry's added stays 2026-07-02, release stays 0.2.0). The shared code that moves license_for_revision from src/fetch_wikipedia.py into src/rights.py, rewrites src/fetch_wikimedia.py and adds src/test_wikimedia_contract.py is on main since #77, and DROPPED_PAGES since #79.
Before → after
| v0.2.5 | this PR | |
|---|---|---|
| documents | 13,645 | 13,643 |
| characters | 45,184,300 | 45,176,480 |
| tokens (cl100k proxy) | 17,128,200 | 17,125,240 |
CC-BY-SA-3.0 rows |
13,645 | 9,040 (4,232,587 tokens, 24.7%) |
CC-BY-SA-4.0 rows |
0 | 4,603 (12,892,653 tokens, 75.3%) |
Rules, counts, hand-checks
src/fetch_wikimedia.py (acquire → prepare → build_dynaword.py → attribution → datasheet), then build_dynaword.py's own gates. Samples: seed 20261006 (random.Random), 8 per rule unless all were read.
| rule | count | hand-check |
|---|---|---|
| pages in the dump | 15,468 | |
| not namespace 0 | 1,147 | |
| redirects | 630 | 8 sampled: all redirects (the dump's <redirect> element) |
| empty pages / parser failures | 0 / 0 | |
< 200 characters after conversion (same gate as build_dynaword.py) |
36 | 8 sampled: all under 200 characters; 3 village stubs of one or two sentences, 2 disambiguation lists, 2 region intros with a list, 1 navigation page |
| exact duplicates of stripped text (lower page id kept) | 1 | the 1 read: page 12746 "Lindesberg" carries the text of page 10413 "Nora"; the lower page id is kept |
withheld by the rights review (DROPPED_PAGES) |
2 | wikivoyage_1219 (label 3.0), wikivoyage_910 (label 4.0): both read in the follow-up check below |
build_dynaword.py non-Polish (diacritic ratio) |
9 | all 9 read: Polish region / island pages that are the article template (headings) plus a sentence or two. They are Polish, so the diacritic filter misfires here; existing shared filter, not changed here |
| kept | 13,643 |
Funnel: 15,468 → 14,321 in namespace 0 → 13,652 written → 13,643 kept. Labels before the language filter: CC-BY-SA-3.0 9,048, CC-BY-SA-4.0 4,604. Every row's label is rechecked against its last-revision time in the attribution sidecar by check_released (see Tests).
Label rule license_for_revision (src/rights.py): last revision before 2023-06-07T00:00:00Z → CC-BY-SA-3.0, at or after → CC-BY-SA-4.0; a missing or zone-less timestamp stops the build. Same rule and same midnight cutoff as the wikipedia PR. 6 pages were last edited on 2023-06-07 itself and get 4.0; the audit's 06-08 would put that day's 4.0 edits under 3.0, which 4.0 §3(b)(1) does not allow, and the dump has no switch time to cut more finely, so up to 6 of these may be 3.0 text under a 4.0 label.
Provenance and licence
- Wikimedia Terms of Use oldid 554823 (CC BY-SA 4.0 and GFDL, in effect June 7, 2023; sha256
c96ef93b…) and oldid 98524 (CC BY-SA 3.0, June 16, 2014; sha25646617e35…); CC BY-SA 3.0 §4(b)(ii) (sha256c33d7ebd…) and 4.0 §3(b)(1) (sha25647c0a954…) legal code; pl.wikivoyage.orgrightsinfoCC BY-SA 4.0. Read 2026-10-06. A page edited after the switch can carry earlier 3.0 text under 4.0 via 3.0 §4(b)(ii) (inferred, not a lawyer's opinion). - GFDL era (last edit before 2009-06-15): 0 documents.
- Attribution: each row's
authorlinks its page, whose history names the contributors;data/wikivoyage/wikivoyage.attribution.jsonl(LFS) has id, page id, revision id, title, URL, last-revision time and licence per row;wikivoyage.license-evidence.jsonpins the sources above;wikivoyage.build.jsonpins the dump and the counts. - Registry:
src/sources.pyprovenance, licence (license_spdxMIXED), traceable text and upstream updated; the card is generated byfetch_wikimedia.py datasheet(custom_datasheet);make_docs.py, README and CHANGELOG are not touched. - Text conversion is the v0.2.5 one (plain
mwparserfromhell.strip_code), so<ref>bodies,Kategoria:links andthumb|file options stay in the text. That is unchanged and stated in the card; fixing it would change the text of every release and is not part of this PR.
Dedup (reported, not fixed)
The text multiset is v0.2.5's minus the 2 withheld pages, so exact-text overlap with other sources can only have shrunk; it was not re-measured. No overlap_audit.json in the repo mentions this source.
Follow-up audit checks (2026-10-06)
Measured and reported first. The maintainer then approved withholding the two confirmed pages (2026-10-06, see above); nothing else was dropped or relabelled.
Copyvio sample (audit item). Earwig Copyvio Detector API (copyvios.toolforge.org, public, no login), same method and size as the wikipedia agent's 80-page sample: 40 released pages per licence label (80), random.seed(20261006) then random.sample over the ids sorted by number within each label, action=search with use_engine=1, use_links=1, oldid = the dumped revision, 3 s between calls. Every hit at confidence 0.10 or more, and every one marked possible or suspected, was read by hand against the page history (first revision holding the shared passage) and the date of the source (page metadata or Wayback). Limits: Earwig finds pages a search engine returns; paywalled, blocked or unindexed sources are missed, and a later copy on the web does not show that the wiki text was original. 80 of 80 pages were checkable.
| result | n | ids, matched URLs |
|---|---|---|
| copied from a copyrighted source, confirmed (both now withheld) | 2 | wikivoyage_1219 Barcelona/Sagrada Família (label 3.0): https://barcelona.przewodnik-turystyczny.pl/m/barcelona/ , confidence 0.23, 432 of 2,782 characters shared verbatim; a Wayback capture of 2006-06-16 already holds the passages, the wiki page was created 2009-06-04, and the page's own bibliography says "Teksty zredagowano w oparciu o" that site and barcelona-przewodnik.pl. wikivoyage_910 Królewiec (label 4.0): https://kaliningraddotblog.wordpress.com/2018/05/07/krolewiec-konigsberg/ , confidence 0.78, 2,021 of 5,006 characters; the blog post is dated 2018-05-07, the text was added to the wiki on 2021-02-23 (revision 108903), and it is not in Wikipedia |
| suspected, direction unresolved | 2 | wikivoyage_2477 Bugaj (powiat ostrowski) (3.0): https://galeriawielkopolska.info/bugaj/ , 0.363, 628 of 1,485 characters; on the wiki since 2010-01-28; the site cites S. Małyszko, "Majątki Wielkopolskie: Powiat Ostrowski", and its own text could not be dated. wikivoyage_989 Kędzierzyn-Koźle (4.0): https://kedzierzynkozle.pl/en/node/509 , 0.611, 1,273 of 9,904 characters; added by an IP edit on 2011-07-13; earliest Wayback capture 2019-09-21; not in Wikipedia |
| copied from Wikipedia (same licence family, so not third-party copyright) | 12 | 3.0: wikivoyage_8176 Tasos, 13560 Santa Fe (prowincja), 15235 Park Narodowy Hortobágy, 6494 Imeretia, 8533 Berbera, 6661 Guria, 6348 Cziatura, 10253 Mezőkövesd, 7409 Tisamsilt. 4.0: 12630 Balingen, 18299 Hvammstangi, 5957 Turek. All twelve are leads of pl.wikipedia articles; none has a Wikipedia template or credit in the dumped wikitext (Turek only has [[w:...]] links). That is an attribution question for CC BY-SA, not a rights one |
| not copied | 1 | wikivoyage_2406 Carnet de Passage: 228 of 3,247 characters shared with the Dz. Urz. MF regulation of 2017 (official text, page from 2009) |
Wilson 95% upper bounds: confirmed 2 of 80 is 8.7% (1 of 40 per label: 12.9% for each); confirmed plus suspected 4 of 80 is 12.2% (3.0: 3 of 40 gives 19.9%; 4.0: 2 of 40 gives 16.5%). Wikipedia-lead copies 12 of 80 (15.0%, upper bound 24.4%; 3.0: 9 of 40, upper bound 37.5%; 4.0: 3 of 40, upper bound 19.9%).
Non-commercial and all-rights-reserved wording. 8 documents (129,353 tokens in all) contain non-commercial wording and none contains "all rights reserved". All 8 (wikivoyage_3272, 3842, 420, 558, 600, 613, 2341, 2584) describe a venue, club or organisation as non-commercial; none is a licence notice.
No tool asked for a login or terms acceptance.
Open
- E1
- the 6 documents edited on 2023-06-07
- copyright pastes: the 2 confirmed ones (1219, 910) are withheld; the 2 suspected ones in the 80-page sample (2477, 989) are still released, maintainers decide; the other 13,565 pages were not checked
- the datasheet's "not checked" list still says "pastes from copyrighted sources (no sample was run)"; that is no longer true after the follow-up sample and is not changed here
- 12 of 80 pages carry Wikipedia leads without the attribution CC BY-SA asks for
- the markup residue
Tests
pytest -q src on main b35baa4 with the wikivoyage, wikibooks, wikinews and wikipedia data pulled: 500 passed. With this PR: 502 passed; the same 38 failures and 10 errors on both come from other sources' Parquets that were not pulled (LFS pointers), none in the wikimedia family. Before the rebase, on 0f6dee0: wikimedia family (test_wikimedia_contract.py, test_wikivoyage_contract.py, test_wikipedia_contract.py) 112 passed; whole suite with LFS skipped 370 passed, 24 failed, 7 errors, all in other sources' contracts.
New for the withholding: check_released("wikivoyage", ..., dropped=(2, 7820, 2960)) pins counts equal to v0.2.5 minus the 2 pages' documents, characters and tokens (13,643 / 45,176,480 / 17,125,240; labels 9,040 and 4,603) and every row against the attribution sidecar, the evidence file, the registry entry and the committed card; test_wikivoyage_withholds_the_two_copied_pages checks that exactly 1219 and 910 are listed with a reason, are absent from the parquet and are recorded in wikivoyage.build.json with the same reasons. The fixture tests of prepare now patch DROPPED_PAGES to a fixture list (empty by default) so they do not depend on the real one.
python3 src/render_sample.py data/wikivoyage/wikivoyage.parquet -n 3
id: wikivoyage_6992
source: wikivoyage
added: 2026-07-19
created: 2026-01-14
token_count: 353
license: CC-BY-SA-4.0
author: Wikivoyage contributors, https://pl.wikivoyage.org/wiki/Fr%C3%A9jus
Fréjus – miejscowość i gmina we Francji, w regionie Prowansja-Alpy-Lazurowe Wybrzeże, w departamencie Var.
Charakterystyka
Dojazd
Samolotem
W pobliżu Cannes znajduje się lokalny port lotniczy, natomiast w Nicei zlokalizowany jest duży międzynarodowy port lotniczy.
Pociągiem
W Fréjus znajduje się stacja kolejowa, obsługująca połączenia regionalne z Marsylią i Niceą oraz dalekobieżne TGV z Paryża.
Samochodem
Fréjus leży przy autostradzie A8 prowadząca z Marsylii do Nicei.
Statkiem
Komunikacja
Warto zobaczyć
Najbliższe okolice
Praca
Nauka
Zakupy
Gastronomia
Festiwale, imprezy
Noclegi
Résidence Pierre & Vacances Cap Hermès Port Fréjus
Kyriad Fréjus St Raphael - Port hotel 3-gwiazdkowy
Hotel Arena hotel 4-gwiazdkowy
Zénitude Hôtel & Résidence […]
id: wikivoyage_4749
source: wikivoyage
added: 2026-07-19
created: 2018-10-06
token_count: 1025
license: CC-BY-SA-3.0
author: Wikivoyage contributors, https://pl.wikivoyage.org/wiki/%C5%81asieczniki
Łasieczniki – wieś w Polsce, położona w województwie łódzkim, w powiecie skierniewickim, w gminie Bolimów.
Informacje
Współrzędne geograficzne: 52°05′N 20°07′E
3 km na północ od autostrady A2, a 3 km na zachód droga 705 Skierniewice – Bolimów – Sochaczew. 4 km na północ linia kolejowa nr 3 Warszawa Zachodnia – Kunowice, przystanek Bednary.
Przy trasie Nieborów – Bolimów, 3 km od Nieborowa, po prawej stronie, tuż przy drodze założenie obronne z początku XVII w. Staw a na nim kwadratowa sztuczna wyspa, wysoko usypana, z zrujnowanymi murowanymi piwnicami sklepionymi kolebkowo.
W XV w. w najbliższym sąsiedztwie Nieborowa istniały wsie szlacheckie: Jasionna, Piaski, Sypień, Sokołów, Łasieczniki oraz Wólka Łasiecka, które utworzyły z czasem zespół gospodarstw rolnych wiejskich i […]
id: wikivoyage_1947
source: wikivoyage
added: 2026-07-19
created: 2022-09-02
token_count: 177
license: CC-BY-SA-3.0
author: Wikivoyage contributors, https://pl.wikivoyage.org/wiki/Palangkaraya
Palangkaraya - miasto w Indonezji na wyspie Borneo nad rzeką Kahayan; ośrodek administracyjny prowincji Borneo Środkowe.
Charakterystyka
Dojazd
Samolotem
Znajduje się tu port lotniczy.
Koleją
Samochodem
Palangkaraya jest ważnym węzłem drogowym.
Autobusem
Statkiem
Komunikacja
Warto zobaczyć
Najbliższe okolice
Praca
Nauka
Zakupy
Gastronomia
Festiwale, imprezy
Nocleg
Kontakt
Bezpieczeństwo
Informacje turystyczne
Wyjazd
🤖 Generated with Claude Code
refs/pr/78 ref