Datasets:
studia_bas: licence version resolved to CC BY 3.0 PL (evidence + tests, no data change)
#80
by ppuzio - opened
artifacts/source_findings.md
CHANGED
|
@@ -2136,3 +2136,37 @@ day and the 0 GFDL-era documents are unchanged.
|
|
| 2136 |
so 13,565 were not checked; two further pages stay in the release with the source's direction
|
| 2137 |
unresolved (`wikivoyage_2477`, `wikivoyage_989`); E1 (v2#56); the 6 boundary documents; the
|
| 2138 |
markup residue.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2136 |
so 13,565 were not checked; two further pages stay in the release with the source's direction
|
| 2137 |
unresolved (`wikivoyage_2477`, `wikivoyage_989`); E1 (v2#56); the 6 boundary documents; the
|
| 2138 |
markup residue.
|
| 2139 |
+
|
| 2140 |
+
## `studia_bas`: licence version resolved to CC BY 3.0 PL
|
| 2141 |
+
|
| 2142 |
+
**Investigated:** 2026-10-06
|
| 2143 |
+
**Verdict:** no data change; 112 documents stay CC BY 3.0 PL, no per-row version label. The
|
| 2144 |
+
resolution is recorded in `data/studia_bas/studia_bas.license-evidence.json`
|
| 2145 |
+
(`version_resolution`) and pinned by `src/test_studia_bas_contract.py`. Tracks the 2026-10
|
| 2146 |
+
rights audit action "check live site manually (CAPTCHA); resolve 3.0 vs 4.0".
|
| 2147 |
+
|
| 2148 |
+
### Verified
|
| 2149 |
+
|
| 2150 |
+
- The journal's own pages say CC BY 3.0 PL: seven Wayback captures (2021-07-11 to 2024-09-08,
|
| 2151 |
+
open-access page and author instructions, PL and EN) and the three live pages on
|
| 2152 |
+
2026-10-06. The cutoff is issue 2(66)/2021 wherever one is stated, which is where the data
|
| 2153 |
+
starts. The newest issue listed live is 2(82)2025, the last one in the data.
|
| 2154 |
+
- Plain GET requests with an identifying User-Agent returned the live pages, not the
|
| 2155 |
+
human-verification page, so nothing was answered or bypassed. Archived captures from
|
| 2156 |
+
2025-11-15 on are the verification page, and it may come back.
|
| 2157 |
+
- DOAJ is the only source that says 4.0 (journal-level `license.url`, record updated
|
| 2158 |
+
2026-09-17). Its own `copyright.url` and `oa_statement` point at the journal pages above.
|
| 2159 |
+
Crossref holds no licence deposit for any of the 246 works.
|
| 2160 |
+
- Live PL author-instructions paragraph now names "Studia i Ekspertyzy Sejmowe" and drops the
|
| 2161 |
+
"Od numeru 2(66) 2021" cutoff (2022-2024 captures have both). It still says CC BY 3.0 PL.
|
| 2162 |
+
|
| 2163 |
+
### Not established
|
| 2164 |
+
|
| 2165 |
+
- The notice inside each PDF (the fetcher's gate and the evidence file's PDF quotes) was not
|
| 2166 |
+
re-read: that needs the 17 issue PDFs (51,701,823 bytes) from orka.sejm.gov.pl.
|
| 2167 |
+
- The journal's wording between 2024-09-08 and 2026-10-06 (no readable capture). By the
|
| 2168 |
+
four-a-year numbering, issues 80-82 (11 rows) fall in that window.
|
| 2169 |
+
- CEJSH and BazHum: guessed record URLs returned 404.
|
| 2170 |
+
|
| 2171 |
+
**Lesson:** the audit found the live site behind a verification page, yet a plain read-only
|
| 2172 |
+
GET returned it on 2026-10-06. Retry that before routing a check to a human.
|
data/studia_bas/studia_bas.license-evidence.json
CHANGED
|
@@ -167,5 +167,192 @@
|
|
| 167 |
"bytes": 2359571,
|
| 168 |
"sha256": "40426dad520e291370a8172b4da4275789f3fc91587fc306fe6580c9bd6fcf3e"
|
| 169 |
}
|
| 170 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 171 |
}
|
|
|
|
| 167 |
"bytes": 2359571,
|
| 168 |
"sha256": "40426dad520e291370a8172b4da4275789f3fc91587fc306fe6580c9bd6fcf3e"
|
| 169 |
}
|
| 170 |
+
],
|
| 171 |
+
"version_resolution": {
|
| 172 |
+
"checked_at": "2026-10-06",
|
| 173 |
+
"question": "The registry and every row say CC BY 3.0 PL; the DOAJ record of the journal lists CC BY 4.0 (rights audit 2026-10, action \"resolve 3.0 vs 4.0\"). Which version applies?",
|
| 174 |
+
"conclusion": "CC BY 3.0 PL for all 112 rows. Every statement by the publisher that could be read names 3.0 PL: seven archived captures from 2021-07-11 to 2024-09-08 and three live pages on 2026-10-06, in Polish and English, with the cutoff at issue 2(66)/2021 wherever a cutoff is stated. The newest issue listed is 2(82)2025, the last issue in the data, so the live statement covers every row. Nothing shows a version change between issues, so no per-row version label is needed. DOAJ is the only source that says 4.0.",
|
| 175 |
+
"method": "Read-only. Wayback Machine replays (id_ form, bodies hashed after HTTP content decoding) of the journal's open-access page (seria=4) and author-instructions page (view=5), found with the CDX API. No Save Page Now request, no CAPTCHA was answered, the live site was not opened.",
|
| 176 |
+
"journal_statements_readable": [
|
| 177 |
+
{
|
| 178 |
+
"wayback_timestamp": "20210711180906",
|
| 179 |
+
"original_url": "https://studiabas.sejm.gov.pl/Journal.nsf/pubBAS.xsp?seria=4&lang=EN",
|
| 180 |
+
"replay_url": "https://web.archive.org/web/20210711180906id_/https://studiabas.sejm.gov.pl/Journal.nsf/pubBAS.xsp?seria=4&lang=EN",
|
| 181 |
+
"language": "EN",
|
| 182 |
+
"sha256": "1abd908a3f563f72fc500782c4fe052e854b85140a3b6d71988e11f71a78757f",
|
| 183 |
+
"bytes": 11917,
|
| 184 |
+
"quoted": [
|
| 185 |
+
"Starting from No. 2(66)2021, “Studia BAS” journal is licensed under the Creative Commons Attribution 3.0 License (CC-BY 3.0 PL)"
|
| 186 |
+
]
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"wayback_timestamp": "20220609055923",
|
| 190 |
+
"original_url": "https://studiabas.sejm.gov.pl/Journal.nsf/pubBAS.xsp?view=5&seria=4&lang=PL",
|
| 191 |
+
"replay_url": "https://web.archive.org/web/20220609055923id_/https://studiabas.sejm.gov.pl/Journal.nsf/pubBAS.xsp?view=5&seria=4&lang=PL",
|
| 192 |
+
"language": "PL",
|
| 193 |
+
"sha256": "1fe1b1ce6477a0ac537a2afb36d8df8c9728dbac9fa5b6fd593398daee990088",
|
| 194 |
+
"bytes": 141752,
|
| 195 |
+
"quoted": [
|
| 196 |
+
"Od numeru 2(66) 2021 r. jego zawartość jest udostępniana na wolnej licencji CC BY 3.0 PL"
|
| 197 |
+
]
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"wayback_timestamp": "20220624130722",
|
| 201 |
+
"original_url": "https://studiabas.sejm.gov.pl/Journal.nsf/pubBAS.xsp?view=5&seria=4&lang=EN",
|
| 202 |
+
"replay_url": "https://web.archive.org/web/20220624130722id_/https://studiabas.sejm.gov.pl/Journal.nsf/pubBAS.xsp?view=5&seria=4&lang=EN",
|
| 203 |
+
"language": "EN",
|
| 204 |
+
"sha256": "6782ba019e0a450b8e218c896a2b2393bf33e4e1d11626e70ff384d49520ce70",
|
| 205 |
+
"bytes": 140453,
|
| 206 |
+
"quoted": [
|
| 207 |
+
"Starting from No. 2(66)2021 it is is licensed under the CC BY 3.0 PL license."
|
| 208 |
+
]
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"wayback_timestamp": "20230627164626",
|
| 212 |
+
"original_url": "https://studiabas.sejm.gov.pl/Journal.nsf/pubBAS.xsp?view=5&seria=4&lang=PL",
|
| 213 |
+
"replay_url": "https://web.archive.org/web/20230627164626id_/https://studiabas.sejm.gov.pl/Journal.nsf/pubBAS.xsp?view=5&seria=4&lang=PL",
|
| 214 |
+
"language": "PL",
|
| 215 |
+
"sha256": "96b5b2da652e10d0c99a6bc21be1a5360e2a016854d12b9553d80031c057c0b7",
|
| 216 |
+
"bytes": 142169,
|
| 217 |
+
"quoted": [
|
| 218 |
+
"wyraża zgodę, aby Kancelaria Sejmu udostępniała dzieło na licencji Creative Commons-Uznanie autorstwa 3.0 PL (CC-BY 3.0 PL)",
|
| 219 |
+
"Od numeru 2(66) 2021 jego zawartość jest udostępniana na wolnej licencji CC BY 3.0 PL"
|
| 220 |
+
]
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"wayback_timestamp": "20240528160016",
|
| 224 |
+
"original_url": "https://studiabas.sejm.gov.pl/Journal.nsf/pubBAS.xsp?seria=4&lang=EN",
|
| 225 |
+
"replay_url": "https://web.archive.org/web/20240528160016id_/https://studiabas.sejm.gov.pl/Journal.nsf/pubBAS.xsp?seria=4&lang=EN",
|
| 226 |
+
"language": "EN",
|
| 227 |
+
"sha256": "92fce3023ee92ee871867deb772086f0cb27138668257ab06648b4225940fce5",
|
| 228 |
+
"bytes": 18983,
|
| 229 |
+
"quoted": [
|
| 230 |
+
"Starting from No. 2(66)2021, “Studia BAS” is licensed under the Creative Commons Attribution 3.0 Poland License (CC-BY 3.0 PL)"
|
| 231 |
+
]
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"wayback_timestamp": "20240528160037",
|
| 235 |
+
"original_url": "https://studiabas.sejm.gov.pl/Journal.nsf/pubBAS.xsp?view=5&seria=4&lang=PL",
|
| 236 |
+
"replay_url": "https://web.archive.org/web/20240528160037id_/https://studiabas.sejm.gov.pl/Journal.nsf/pubBAS.xsp?view=5&seria=4&lang=PL",
|
| 237 |
+
"language": "PL",
|
| 238 |
+
"sha256": "80ca3a0739330df5656f5938452bb3672d435fc2216064adf9316a99070c2a7c",
|
| 239 |
+
"bytes": 161993,
|
| 240 |
+
"quoted": [
|
| 241 |
+
"wyraża zgodę, aby Kancelaria Sejmu udostępniała dzieło na licencji Creative Commons-Uznanie autorstwa 3.0 PL (CC-BY 3.0 PL)",
|
| 242 |
+
"Od numeru 2(66) 2021 jego zawartość jest udostępniana na wolnej licencji CC BY 3.0 PL"
|
| 243 |
+
]
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"wayback_timestamp": "20240908064157",
|
| 247 |
+
"original_url": "https://studiabas.sejm.gov.pl/Journal.nsf/pubBAS.xsp?view=5&seria=4&lang=EN",
|
| 248 |
+
"replay_url": "https://web.archive.org/web/20240908064157id_/https://studiabas.sejm.gov.pl/Journal.nsf/pubBAS.xsp?view=5&seria=4&lang=EN",
|
| 249 |
+
"language": "EN",
|
| 250 |
+
"sha256": "ab6d39c4767a25a5f1ff96c483f7118f448450ba807ad3acd62b30030a2959ee",
|
| 251 |
+
"bytes": 161161,
|
| 252 |
+
"quoted": [
|
| 253 |
+
"The author consents that the Chancellery of Sejm makes the work available under the Creative Commons-Attribution 3.0 PL license (CC-BY 3.0 PL)",
|
| 254 |
+
"Starting from No. 2(66)2021 it is is licensed under the CC BY 3.0 PL license."
|
| 255 |
+
]
|
| 256 |
+
}
|
| 257 |
+
],
|
| 258 |
+
"journal_statements_live": {
|
| 259 |
+
"note": "Plain GET requests with an identifying User-Agent, three pages, one request each. The server returned the pages, not the human-verification page; nothing was answered or bypassed. The hash is of that one response (the pages carry a per-session id, so a later fetch hashes differently).",
|
| 260 |
+
"pages": [
|
| 261 |
+
{
|
| 262 |
+
"retrieved_at": "2026-10-06T00:37Z",
|
| 263 |
+
"url": "https://studiabas.sejm.gov.pl/Journal.nsf/pubBAS.xsp?seria=4&lang=EN",
|
| 264 |
+
"language": "EN",
|
| 265 |
+
"sha256": "4b41bad432e25cd4257c301f670cb1fd0ddb8c899fde3727a7f80f800085e1d9",
|
| 266 |
+
"bytes": 15723,
|
| 267 |
+
"quoted": [
|
| 268 |
+
"Starting from No. 2(66)2021, “Studia BAS” is licensed under the Creative Commons Attribution 3.0 Poland License (CC-BY 3.0 PL)",
|
| 269 |
+
"2(82)2025 Michał Bernardelli Social and economic security from a national and European perspective: Vol. II"
|
| 270 |
+
]
|
| 271 |
+
},
|
| 272 |
+
{
|
| 273 |
+
"retrieved_at": "2026-10-06T00:38Z",
|
| 274 |
+
"url": "https://studiabas.sejm.gov.pl/Journal.nsf/pubBAS.xsp?view=5&seria=4&lang=EN",
|
| 275 |
+
"language": "EN",
|
| 276 |
+
"sha256": "ca66dc3a29d580e1493361849d819a6ae6572ee6e12ff8c2e962671a30a5d502",
|
| 277 |
+
"bytes": 156433,
|
| 278 |
+
"quoted": [
|
| 279 |
+
"The author consents that the Chancellery of Sejm makes the work available under the Creative Commons-Attribution 3.0 PL license (CC-BY 3.0 PL)",
|
| 280 |
+
"Starting from No. 2(66)2021 it is is licensed under the CC BY 3.0 PL license."
|
| 281 |
+
]
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"retrieved_at": "2026-10-06T00:38Z",
|
| 285 |
+
"url": "https://studiabas.sejm.gov.pl/Journal.nsf/pubBAS.xsp?view=5&seria=4&lang=PL",
|
| 286 |
+
"language": "PL",
|
| 287 |
+
"sha256": "0844f2e0c7258d5fc9fa1026696bd61fd816b35f90e5bfc67936cb4d54850c34",
|
| 288 |
+
"bytes": 157566,
|
| 289 |
+
"quoted": [
|
| 290 |
+
"wyraża zgodę, aby Kancelaria Sejmu udostępniała dzieło na licencji Creative Commons-Uznanie autorstwa 3.0 PL (CC-BY 3.0 PL)",
|
| 291 |
+
"Jego zawartość jest udostępniana na wolnej licencji CC BY 3.0 PL"
|
| 292 |
+
],
|
| 293 |
+
"note": "This paragraph now names „Studia i Ekspertyzy Sejmowe\" instead of Studia BAS and no longer carries the \"Od numeru 2(66) 2021\" cutoff that the 2022-2024 captures have. It still says CC BY 3.0 PL. The English pages keep the cutoff."
|
| 294 |
+
}
|
| 295 |
+
],
|
| 296 |
+
"latest_issue_listed": "2(82)2025"
|
| 297 |
+
},
|
| 298 |
+
"journal_statements_blocked": {
|
| 299 |
+
"note": "These archived captures are a human-verification page, not the journal page. The earliest is 2025-11-15. The archive therefore holds no readable copy after 2024-09-08; the live pages above close that gap for 2026-10-06. The human-verification page can come back for other clients or request rates.",
|
| 300 |
+
"captures": [
|
| 301 |
+
{
|
| 302 |
+
"wayback_timestamp": "20251115205852",
|
| 303 |
+
"original_url": "https://studiabas.sejm.gov.pl/Journal.nsf/pubBAS.xsp?view=5&seria=4&lang=EN",
|
| 304 |
+
"sha256": "859d6b7afe79f28de547d6f78fdab25a89838bfe74eea3c2fc526a6c0e95ea31",
|
| 305 |
+
"content": "bot-check page (\"Please enable JavaScript to view the page content\", image-code question); no licence text"
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"wayback_timestamp": "20260521121416",
|
| 309 |
+
"original_url": "https://studiabas.sejm.gov.pl/Journal.nsf/pubBAS.xsp?view=5&seria=4&lang=PL",
|
| 310 |
+
"sha256": "f432fa108cfc2d0cfc74b46bf851abafdeb46a1e2955bb0d1c6ed1b4b79c3c90",
|
| 311 |
+
"content": "bot-check page (\"Please enable JavaScript to view the page content\", image-code question); no licence text"
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"wayback_timestamp": "20260613175157",
|
| 315 |
+
"original_url": "https://studiabas.sejm.gov.pl/Journal.nsf/pubBAS.xsp?seria=4&lang=EN",
|
| 316 |
+
"sha256": "8fcbeab130ee046b8702e6b5521224909d22eb1c327ecf435e6d0f2bb7eac976",
|
| 317 |
+
"content": "bot-check page (\"Please enable JavaScript to view the page content\", image-code question); no licence text"
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"wayback_timestamp": "20260613181517",
|
| 321 |
+
"original_url": "https://studiabas.sejm.gov.pl/Journal.nsf/pubBAS.xsp?view=5&seria=4&lang=EN",
|
| 322 |
+
"sha256": "6c40fc462fcc8376c67986b34fabe28a5fae00931ec3f845001dc4c0d6a873f8",
|
| 323 |
+
"content": "bot-check page (\"Please enable JavaScript to view the page content\", image-code question); no licence text"
|
| 324 |
+
}
|
| 325 |
+
]
|
| 326 |
+
},
|
| 327 |
+
"contrary_evidence": {
|
| 328 |
+
"doaj": {
|
| 329 |
+
"api_url": "https://doaj.org/api/v2/search/journals/issn:2082-0658",
|
| 330 |
+
"retrieved_at": "2026-10-06T00:21:47Z",
|
| 331 |
+
"record_last_updated": "2026-09-17T10:49:01Z",
|
| 332 |
+
"license": {
|
| 333 |
+
"type": "CC BY",
|
| 334 |
+
"url": "https://creativecommons.org/licenses/by/4.0/"
|
| 335 |
+
},
|
| 336 |
+
"copyright_url": "https://studiabas.sejm.gov.pl/Journal.nsf/pubBAS.xsp?view=5&seria=4&lang=EN",
|
| 337 |
+
"oa_statement_url": "https://studiabas.sejm.gov.pl/Journal.nsf/pubBAS.xsp?seria=4&lang=EN",
|
| 338 |
+
"license_display": [
|
| 339 |
+
"Embed"
|
| 340 |
+
],
|
| 341 |
+
"license_display_example_url": "https://orka.sejm.gov.pl/WydBAS.nsf/0/41A8433B5FEED18DC125889500283EE2/$file/1.Skrzetuska.pdf",
|
| 342 |
+
"reading": "Journal-level field. The record's own copyright and OA-statement links point at the two journal pages whose archived copies above say 3.0 PL. The PDF at license_display_example_url was not downloaded, so what its licence line says is not checked."
|
| 343 |
+
}
|
| 344 |
+
},
|
| 345 |
+
"no_licence_deposit": {
|
| 346 |
+
"crossref_journal_url": "https://api.crossref.org/journals/2082-0658",
|
| 347 |
+
"crossref_works_url": "https://api.crossref.org/journals/2082-0658/works?rows=1000&select=DOI,license",
|
| 348 |
+
"retrieved_at": "2026-10-06",
|
| 349 |
+
"works": 246,
|
| 350 |
+
"works_with_license_deposit": 0
|
| 351 |
+
},
|
| 352 |
+
"not_established": [
|
| 353 |
+
"No readable capture exists between 2024-09-08 and 2026-10-06, so the journal's wording in that window is unknown. Only the PDF notices of issues 80-82 (4/2024 to 2/2025 by the four-a-year numbering) would show a change in it; they were not re-read.",
|
| 354 |
+
"The PDF notices (pdf_issue_editorial_notice, pdf_article_license_notice above) were not re-read: they would need a download of the issue PDFs (17 files, 51,701,823 bytes) from orka.sejm.gov.pl.",
|
| 355 |
+
"CEJSH and BazHum: guessed record URLs returned 404, no record was located."
|
| 356 |
+
]
|
| 357 |
+
}
|
| 358 |
}
|
src/test_studia_bas_contract.py
CHANGED
|
@@ -636,3 +636,85 @@ def test_remove_terminal_bibliography_variants():
|
|
| 636 |
remove_terminal_bibliography(text_appendix4)
|
| 637 |
== "wstęp\n\nZałącznik 1. Transpozycja\n\nTreść"
|
| 638 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 636 |
remove_terminal_bibliography(text_appendix4)
|
| 637 |
== "wstęp\n\nZałącznik 1. Transpozycja\n\nTreść"
|
| 638 |
)
|
| 639 |
+
|
| 640 |
+
|
| 641 |
+
# --- licence version: 3.0 PL (journal) against 4.0 (DOAJ), rights audit 2026-10 ---
|
| 642 |
+
|
| 643 |
+
ROOT = Path(__file__).resolve().parents[1]
|
| 644 |
+
STUDIA_BAS_DATA = ROOT / "data" / "studia_bas"
|
| 645 |
+
SHA256_RE = re.compile(r"[0-9a-f]{64}")
|
| 646 |
+
|
| 647 |
+
|
| 648 |
+
def _version_resolution():
|
| 649 |
+
evidence = json.loads((STUDIA_BAS_DATA / "studia_bas.license-evidence.json").read_text(encoding="utf-8"))
|
| 650 |
+
return evidence, evidence["version_resolution"]
|
| 651 |
+
|
| 652 |
+
|
| 653 |
+
def _attribution():
|
| 654 |
+
path = STUDIA_BAS_DATA / "studia_bas.attribution.jsonl"
|
| 655 |
+
return [json.loads(line) for line in path.read_text(encoding="utf-8").splitlines() if line]
|
| 656 |
+
|
| 657 |
+
|
| 658 |
+
def test_every_row_and_the_registry_carry_the_one_version_the_journal_states():
|
| 659 |
+
import pyarrow.parquet as pq
|
| 660 |
+
from sources import SOURCES
|
| 661 |
+
|
| 662 |
+
evidence, _ = _version_resolution()
|
| 663 |
+
rows = pq.read_table(STUDIA_BAS_DATA / "studia_bas.parquet", columns=["license"]).column("license").to_pylist()
|
| 664 |
+
attribution = _attribution()
|
| 665 |
+
assert len(rows) == len(attribution) == 112
|
| 666 |
+
assert {evidence["license_spdx"], SOURCES[SOURCE]["license"], SOURCES[SOURCE]["license_spdx"], LICENSE} == {"CC-BY-3.0-PL"}
|
| 667 |
+
assert set(rows) == {a["license"] for a in attribution} == {"CC-BY-3.0-PL"}
|
| 668 |
+
assert {a["license_url"] for a in attribution} == {CC_BY_URL} and "/by/3.0/pl/" in CC_BY_URL
|
| 669 |
+
|
| 670 |
+
|
| 671 |
+
def test_archived_and_live_journal_statements_all_say_3_0_pl_and_never_4_0():
|
| 672 |
+
_, resolution = _version_resolution()
|
| 673 |
+
archived = resolution["journal_statements_readable"]
|
| 674 |
+
live = resolution["journal_statements_live"]["pages"]
|
| 675 |
+
assert len(archived) >= 7 and len(live) == 3
|
| 676 |
+
stamps = [c["wayback_timestamp"] for c in archived]
|
| 677 |
+
assert stamps == sorted(stamps) and stamps[0] >= "20210711" and stamps[-1] <= "20240908999999"
|
| 678 |
+
assert {c["language"] for c in archived} == {c["language"] for c in live} == {"PL", "EN"}
|
| 679 |
+
for capture in archived:
|
| 680 |
+
assert capture["replay_url"] == f"https://web.archive.org/web/{capture['wayback_timestamp']}id_/{capture['original_url']}"
|
| 681 |
+
assert capture["original_url"].startswith("https://studiabas.sejm.gov.pl/")
|
| 682 |
+
for statement in archived + live:
|
| 683 |
+
assert SHA256_RE.fullmatch(statement["sha256"]) and statement["bytes"] > 0
|
| 684 |
+
assert statement["quoted"]
|
| 685 |
+
# the live root page also quotes its issue list; only the licence sentences are held to 3.0 PL
|
| 686 |
+
licence_quotes = [q for s in archived + live for q in s["quoted"] if re.search(r"CC[ -]BY|Creative Commons", q)]
|
| 687 |
+
assert len(licence_quotes) >= 15
|
| 688 |
+
assert all(re.search(r"3\.0 (PL|Poland)", q) and "4.0" not in q for q in licence_quotes)
|
| 689 |
+
|
| 690 |
+
|
| 691 |
+
def test_cutoff_and_latest_issue_agree_with_the_rows():
|
| 692 |
+
evidence, resolution = _version_resolution()
|
| 693 |
+
issues = {int(a["issue"]) for a in _attribution()}
|
| 694 |
+
assert min(issues) == evidence["scope_and_cutoff"]["cutoff_issue"] == 66
|
| 695 |
+
live = resolution["journal_statements_live"]
|
| 696 |
+
match = re.fullmatch(r"\d\((\d+)\)\d{4}", live["latest_issue_listed"])
|
| 697 |
+
assert match and int(match.group(1)) == max(issues) == 82
|
| 698 |
+
# every English statement that states a cutoff states the issue the data starts at
|
| 699 |
+
cutoff_quotes = [q for s in resolution["journal_statements_readable"] + live["pages"] for q in s["quoted"] if "Starting from No." in q]
|
| 700 |
+
assert cutoff_quotes and all("2(66)2021" in q for q in cutoff_quotes)
|
| 701 |
+
|
| 702 |
+
|
| 703 |
+
def test_bot_check_captures_hold_no_licence_text_and_postdate_the_readable_ones():
|
| 704 |
+
_, resolution = _version_resolution()
|
| 705 |
+
blocked = resolution["journal_statements_blocked"]["captures"]
|
| 706 |
+
last_readable = resolution["journal_statements_readable"][-1]["wayback_timestamp"]
|
| 707 |
+
assert blocked and all(c["wayback_timestamp"] > last_readable and "no licence text" in c["content"] for c in blocked)
|
| 708 |
+
assert all(SHA256_RE.fullmatch(c["sha256"]) for c in blocked)
|
| 709 |
+
|
| 710 |
+
|
| 711 |
+
def test_the_doaj_4_0_is_recorded_as_the_only_dissent_with_what_was_not_checked():
|
| 712 |
+
_, resolution = _version_resolution()
|
| 713 |
+
doaj = resolution["contrary_evidence"]["doaj"]
|
| 714 |
+
assert doaj["license"]["url"] == "https://creativecommons.org/licenses/by/4.0/"
|
| 715 |
+
assert doaj["copyright_url"].endswith("view=5&seria=4&lang=EN")
|
| 716 |
+
assert "DOAJ is the only source that says 4.0" in resolution["conclusion"]
|
| 717 |
+
assert resolution["no_licence_deposit"]["works_with_license_deposit"] == 0
|
| 718 |
+
# the open points stay visible: the PDF notices were not re-read and CEJSH/BazHum were not located
|
| 719 |
+
open_points = " ".join(resolution["not_established"])
|
| 720 |
+
assert "not re-read" in open_points and "CEJSH" in open_points
|