wikibooks: say the licence string covers imported text (v2#110)
#147
by ppuzio - opened
data/wikibooks/wikibooks.license-evidence.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
| 23 |
"url": "https://creativecommons.org/licenses/by-sa/4.0/legalcode"
|
| 24 |
}
|
| 25 |
],
|
| 26 |
-
"license": "CC-BY-SA-3.0, CC-BY-SA-4.0 or both per record, by contribution date",
|
| 27 |
"release_scope": {
|
| 28 |
"created_range": [
|
| 29 |
"2006-03-05",
|
|
|
|
| 23 |
"url": "https://creativecommons.org/licenses/by-sa/4.0/legalcode"
|
| 24 |
}
|
| 25 |
],
|
| 26 |
+
"license": "CC-BY-SA-3.0, CC-BY-SA-4.0 or both per record, by contribution date, plus the licence of imported text",
|
| 27 |
"release_scope": {
|
| 28 |
"created_range": [
|
| 29 |
"2006-03-05",
|
data/wikibooks/wikibooks.stats.json
CHANGED
|
@@ -15,5 +15,5 @@
|
|
| 15 |
},
|
| 16 |
"authors_with_value": 9041,
|
| 17 |
"secs": 2.0,
|
| 18 |
-
"license": "CC BY-SA (3.0, 4.0 or both per record, by contribution date)"
|
| 19 |
}
|
|
|
|
| 15 |
},
|
| 16 |
"authors_with_value": 9041,
|
| 17 |
"secs": 2.0,
|
| 18 |
+
"license": "CC BY-SA (3.0, 4.0 or both per record, by contribution date, plus the licence of imported text)"
|
| 19 |
}
|
src/sources.py
CHANGED
|
@@ -595,7 +595,7 @@ SOURCES = {
|
|
| 595 |
"rebuild adds the page's last-revision time. The licence labels "
|
| 596 |
"come from the page histories (stub-meta-history dump "
|
| 597 |
"plwikibooks-20261001, src/wiki_history.py).",
|
| 598 |
-
"license": "CC BY-SA (3.0, 4.0 or both per record, by contribution date)",
|
| 599 |
"license_spdx": "MIXED",
|
| 600 |
"traceable": "Contributors license their text under CC BY-SA 4.0 since the "
|
| 601 |
"Wikimedia Terms of Use of 2023-06-07, under CC BY-SA 3.0 before, "
|
|
|
|
| 595 |
"rebuild adds the page's last-revision time. The licence labels "
|
| 596 |
"come from the page histories (stub-meta-history dump "
|
| 597 |
"plwikibooks-20261001, src/wiki_history.py).",
|
| 598 |
+
"license": "CC BY-SA (3.0, 4.0 or both per record, by contribution date, plus the licence of imported text)",
|
| 599 |
"license_spdx": "MIXED",
|
| 600 |
"traceable": "Contributors license their text under CC BY-SA 4.0 since the "
|
| 601 |
"Wikimedia Terms of Use of 2023-06-07, under CC BY-SA 3.0 before, "
|
src/test_wikibooks_contract.py
CHANGED
|
@@ -26,6 +26,7 @@ def test_wikibooks_contract(tmp_path):
|
|
| 26 |
"CC-BY-SA-4.0": 1257}
|
| 27 |
assert ev["release_scope"]["tokens"] == {"CC-BY-SA-3.0": 11385616, "CC-BY-SA-3.0 AND CC-BY-3.0": 6546,
|
| 28 |
"CC-BY-SA-3.0 AND CC-BY-SA-4.0": 2467665, "CC-BY-SA-4.0": 1360973}
|
|
|
|
| 29 |
assert provenance_counts("wikibooks") == (784, 110) # citations; licence templates (3B)
|
| 30 |
labels = build["licence_labels"]
|
| 31 |
assert labels["cases"] == {"shipped_before_cutoff": 4409, "same_revision_text": 360, "identical_text": 1387, "no_text_added": 635,
|
|
|
|
| 26 |
"CC-BY-SA-4.0": 1257}
|
| 27 |
assert ev["release_scope"]["tokens"] == {"CC-BY-SA-3.0": 11385616, "CC-BY-SA-3.0 AND CC-BY-3.0": 6546,
|
| 28 |
"CC-BY-SA-3.0 AND CC-BY-SA-4.0": 2467665, "CC-BY-SA-4.0": 1360973}
|
| 29 |
+
assert ev["license"] == "CC-BY-SA-3.0, CC-BY-SA-4.0 or both per record, by contribution date, plus the licence of imported text"
|
| 30 |
assert provenance_counts("wikibooks") == (784, 110) # citations; licence templates (3B)
|
| 31 |
labels = build["licence_labels"]
|
| 32 |
assert labels["cases"] == {"shipped_before_cutoff": 4409, "same_revision_text": 360, "identical_text": 1387, "no_text_added": 635,
|