OpenIslet

scripts/build_context_evidence_graph.py

Build and verify the Layer-1 Context-Evidence Graph (`CEG`) public artifacts.

script Release v0.8.0 gen-eb955f8266035aba 229 KB · 16 sections

Use this file in any AI chat (paste-only or attachment-capable):

Download as text (.txt) Download section (.txt)

Pinned raw file: https://openislet.org/files/gen-eb955f8266035aba/scripts/build_context_evidence_graph.py · SHA-256: 2758ba22e378ffed…

    _w6_pin_specs = json.loads('{"PMID:1334978:O1": {"pmid": "1334978", "primary": {"body_file": null, "body_sha256": null, "end": 662, "pmcid": null, "pmid": "1334978", "quote_sha256": "3ad3d91f867467e1434c4f3b71fe3971c5ef9fcd9a6421f59af0b4fa7b18b48e", "source_body_sha256": "51062974fd93e917a169dbb1c88d87934bee4bde0133feb45f1e45b2e8ce7a0d", "source_type": "abstract", "span": "abstract[163:662]|norm=exact", "start": 163}, "secondaries": []}, "PMID:17130499:O1": {"pmid": "17130499", "primary": {"body_file": null, "body_sha256": null, "end": 984, "pmcid": null, "pmid": "17130499", "quote_sha256": "7a6f54a735e31dba6261e365f56a4f7abf92604f947569f865f002fa6ca30188", "source_body_sha256": "3f77b66ccc8f6c5a8ddbd0e1ad5943566ecff0b754fae49fdfe605b24867b9db", "source_type": "abstract", "span": "abstract[407:984]|norm=exact", "start": 407}, "secondaries": []}, "PMID:17503968:O1": {"pmid": "17503968", "primary": {"body_file": "17503968_PMC1868042.txt", "body_sha256": "3186879e13088ca92f42f6b46651e40071497e68154426ed5762a4dd1ee3b1df", "end": 18746, "pmcid": "PMC1868042", "pmid": "17503968", "quote_sha256": "1e3aaff6c2dd7b5bdadf5ce144b75b499e6667bba47aa522c786ab77817110ef", "source_body_sha256": null, "source_type": "fulltext_results", "span": "fulltext[17569:18746]|norm=exact", "start": 17569}, "secondaries": []}, "PMID:17503968:O2": {"pmid": "17503968", "primary": {"body_file": "17503968_PMC1868042.txt", "body_sha256": "3186879e13088ca92f42f6b46651e40071497e68154426ed5762a4dd1ee3b1df", "end": 20536, "pmcid": "PMC1868042", "pmid": "17503968", "quote_sha256": "b85bba579fe29c300d16585132ec0af1d0b07587775d1b5e9a36fd57b99f9ef8", "source_body_sha256": null, "source_type": "fulltext_results", "span": "fulltext[19644:20536]|norm=exact", "start": 19644}, "secondaries": []}, "PMID:17503968:O3": {"pmid": "17503968", "primary": {"body_file": null, "body_sha256": null, "end": 1628, "pmcid": null, "pmid": "17503968", "quote_sha256": "7087984daa22cef5532e80cd7b7d20bcef72be656c8b4c3e2f77debf57012e69", "source_body_sha256": "e94df896f2c624d06c6739fdccacc6622bc2b4655686de821e713edc5e2a10e7", "source_type": "abstract", "span": "abstract[1225:1628]|norm=exact", "start": 1225}, "secondaries": []}, "PMID:21912932:O1": {"pmid": "21912932", "primary": {"body_file": null, "body_sha256": null, "end": 1203, "pmcid": null, "pmid": "21912932", "quote_sha256": "eefad3a66b1fd1bce700421958a3f113bb8f9253599d040b2322f6f413a9f432", "source_body_sha256": "0354750e0aa0087f9608a989496e562b4f57a42b8fdbafd410171b01dd7de6a6", "source_type": "abstract", "span": "abstract[0:1203]|norm=exact", "start": 0}, "secondaries": []}, "PMID:22315720:O1": {"pmid": "22315720", "primary": {"body_file": null, "body_sha256": null, "end": 816, "pmcid": null, "pmid": "22315720", "quote_sha256": "c81579f248edaf1a415f3542d8840c2ff5b396c5a8c1a27c06020885d5b782bb", "source_body_sha256": "42330ac201c6e0990b36d2b00328622fee6460f83ca6bb37a067189494a69f0a", "source_type": "abstract", "span": "abstract[404:816]|norm=exact", "start": 404}, "secondaries": []}, "PMID:23572523:O1": {"pmid": "23572523", "primary": {"body_file": null, "body_sha256": null, "end": 793, "pmcid": null, "pmid": "23572523", "quote_sha256": "2b2e0a076a655373d85cdbd0eb7fc8d93051e210af57222cb5313d22a7f3bac3", "source_body_sha256": "23661b0aca70ec5a6fb67e478e00e46a071533375890250db6c9a43493bab785", "source_type": "abstract", "span": "abstract[445:793]|norm=exact", "start": 445}, "secondaries": []}, "PMID:23572523:O2": {"pmid": "23572523", "primary": {"body_file": null, "body_sha256": null, "end": 1060, "pmcid": null, "pmid": "23572523", "quote_sha256": "0c55579db0bbfb006b96207808c3cc10d57aabfc87c848076d935ac571c7580f", "source_body_sha256": "23661b0aca70ec5a6fb67e478e00e46a071533375890250db6c9a43493bab785", "source_type": "abstract", "span": "abstract[794:1060]|norm=exact", "start": 794}, "secondaries": []}, "PMID:23616575:O1": {"pmid": "23616575", "primary": {"body_file": "23616575_PMC3825029.txt", "body_sha256": "aa426f775dbb545be9600e91ff775750d9c0284af6248e8efa76f0a51b5a2464", "end": 31137, "pmcid": "PMC3825029", "pmid": "23616575", "quote_sha256": "f6be29fd7f6877f423b3c6c22853d987d5d77a40f63cdaecf9e1c42ecf82ffb6", "source_body_sha256": null, "source_type": "fulltext_results", "span": "fulltext[30609:31137]|norm=exact", "start": 30609}, "secondaries": []}, "PMID:23616575:O2": {"pmid": "23616575", "primary": {"body_file": "23616575_PMC3825029.txt", "body_sha256": "aa426f775dbb545be9600e91ff775750d9c0284af6248e8efa76f0a51b5a2464", "end": 35496, "pmcid": "PMC3825029", "pmid": "23616575", "quote_sha256": "d1e8bf056ba55a5da51393e1e74c4f951f6dfa56988aeda50903e97873de9087", "source_body_sha256": null, "source_type": "fulltext_results", "span": "fulltext[34432:35496]|norm=exact", "start": 34432}, "secondaries": []}, "PMID:23935835:O1": {"pmid": "23935835", "primary": {"body_file": null, "body_sha256": null, "end": 1516, "pmcid": null, "pmid": "23935835", "quote_sha256": "83fb380e01244e98bc26db64427998c228d308e775ff4de62165c05854a485b5", "source_body_sha256": "fb891d6df35e53788e24384b6c4499bd2ebce21698294eb67b76c893ada2ab3b", "source_type": "abstract", "span": "abstract[565:1516]|norm=exact", "start": 565}, "secondaries": [{"body_file": null, "body_sha256": null, "end": 564, "pmcid": null, "pmid": "23935835", "quote_sha256": "da0ffa6cb9ee3e435a52399429595166162be3c32830dbdf6b10e712628674a2", "source_body_sha256": "fb891d6df35e53788e24384b6c4499bd2ebce21698294eb67b76c893ada2ab3b", "source_type": "abstract", "span": "abstract[233:564]|norm=exact", "start": 233}, {"body_file": "23935835_PMC3723782.txt", "body_sha256": "d23d87a9d06a5de3cdd87754004ba3e9d55538fe800eaae8c6a1d353723b868c", "end": 9145, "pmcid": "PMC3723782", "pmid": "23935835", "quote_sha256": "95ced49b4dc89a4aa9f9778237a44f0e7981823bd101987950970a0ed17624f3", "source_body_sha256": null, "source_type": "fulltext_methods", "span": "fulltext[8516:9145]|norm=exact", "start": 8516}, {"body_file": "23935835_PMC3723782.txt", "body_sha256": "d23d87a9d06a5de3cdd87754004ba3e9d55538fe800eaae8c6a1d353723b868c", "end": 23016, "pmcid": "PMC3723782", "pmid": "23935835", "quote_sha256": "f43e1fd5ccf5135309a600d5e23aff7c06f176013bb549e3761741bca94f1b35", "source_body_sha256": null, "source_type": "fulltext_results", "span": "fulltext[22731:23016]|norm=exact", "start": 22731}]}, "PMID:23935835:O2": {"pmid": "23935835", "primary": {"body_file": "23935835_PMC3723782.txt", "body_sha256": "d23d87a9d06a5de3cdd87754004ba3e9d55538fe800eaae8c6a1d353723b868c", "end": 21400, "pmcid": "PMC3723782", "pmid": "23935835", "quote_sha256": "4469fcbb62ba53a3dd99d2fcd28d03f78b88003eb79f8926b1f05948a5a29bd8", "source_body_sha256": null, "source_type": "fulltext_results", "span": "fulltext[21098:21400]|norm=exact", "start": 21098}, "secondaries": []}, "PMID:23935835:O3": {"pmid": "23935835", "primary": {"body_file": "23935835_PMC3723782.txt", "body_sha256": "d23d87a9d06a5de3cdd87754004ba3e9d55538fe800eaae8c6a1d353723b868c", "end": 33162, "pmcid": "PMC3723782", "pmid": "23935835", "quote_sha256": "c25f05d1f4be50c3abae1e479fb5d9ace4370f1e08b783cbe27dd739dbbe5977", "source_body_sha256": null, "source_type": "fulltext_results", "span": "fulltext[32810:33162]|norm=exact", "start": 32810}, "secondaries": [{"body_file": "23935835_PMC3723782.txt", "body_sha256": "d23d87a9d06a5de3cdd87754004ba3e9d55538fe800eaae8c6a1d353723b868c", "end": 9145, "pmcid": "PMC3723782", "pmid": "23935835", "quote_sha256": "95ced49b4dc89a4aa9f9778237a44f0e7981823bd101987950970a0ed17624f3", "source_body_sha256": null, "source_type": "fulltext_methods", "span": "fulltext[8516:9145]|norm=exact", "start": 8516}, {"body_file": "23935835_PMC3723782.txt", "body_sha256": "d23d87a9d06a5de3cdd87754004ba3e9d55538fe800eaae8c6a1d353723b868c", "end": 9971, "pmcid": "PMC3723782", "pmid": "23935835", "quote_sha256": "f7a9feedc747bd805d50b8d1a1b0543a1e8e2e7828d543e0ec4841ed5f7cebb0", "source_body_sha256": null, "source_type": "fulltext_methods", "span": "fulltext[9619:9971]|norm=exact", "start": 9619}]}, "PMID:23935835:O4": {"pmid": "23935835", "primary": {"body_file": "23935835_PMC3723782.txt", "body_sha256": "d23d87a9d06a5de3cdd87754004ba3e9d55538fe800eaae8c6a1d353723b868c", "end": 35136, "pmcid": "PMC3723782", "pmid": "23935835", "quote_sha256": "6c33ac071e92bf3bcfd5b8a340d46a3c15653a8a1be76f1f1640880c1138f84b", "source_body_sha256": null, "source_type": "fulltext_results", "span": "fulltext[34664:35136]|norm=exact", "start": 34664}, "secondaries": [{"body_file": "23935835_PMC3723782.txt", "body_sha256": "d23d87a9d06a5de3cdd87754004ba3e9d55538fe800eaae8c6a1d353723b868c", "end": 10845, "pmcid": "PMC3723782", "pmid": "23935835", "quote_sha256": "86ad8314b333d7948f5a751d08489f8b86705582c7049a80b66045c9a2b27ad2", "source_body_sha256": null, "source_type": "fulltext_methods", "span": "fulltext[10520:10845]|norm=exact", "start": 10520}, {"body_file": "23935835_PMC3723782.txt", "body_sha256": "d23d87a9d06a5de3cdd87754004ba3e9d55538fe800eaae8c6a1d353723b868c", "end": 12227, "pmcid": "PMC3723782", "pmid": "23935835", "quote_sha256": "de3eb9277bfa9bb14cc3d69f3d7613b6d1f8d6d8ba9b0d119802dcb1d930ab12", "source_body_sha256": null, "source_type": "fulltext_methods", "span": "fulltext[11700:12227]|norm=exact", "start": 11700}]}, "PMID:30449685:O1": {"pmid": "30449685", "primary": {"body_file": null, "body_sha256": null, "end": 755, "pmcid": null, "pmid": "30449685", "quote_sha256": "ae73f2fa8f8cb374733c43b6c3d7ff8130ca171a8e28cb869356f330fa2c8960", "source_body_sha256": "0bee067ccb8763e0bd145e878dde03183a95df52642dc016b33135610dedd34d", "source_type": "abstract", "span": "abstract[118:755]|norm=exact", "start": 118}, "secondaries": []}, "PMID:30449685:O2": {"pmid": "30449685", "primary": {"body_file": null, "body_sha256": null, "end": 817, "pmcid": null, "pmid": "30449685", "quote_sha256": "285f34002146ee90252fe6a74356e50d1ced1bc83052d231301be6968a10515d", "source_body_sha256": "0bee067ccb8763e0bd145e878dde03183a95df52642dc016b33135610dedd34d", "source_type": "abstract", "span": "abstract[585:817]|norm=exact", "start": 585}, "secondaries": []}, "PMID:32433410:O1": {"pmid": "32433410", "primary": {"body_file": null, "body_sha256": null, "end": 1000, "pmcid": null, "pmid": "32433410", "quote_sha256": "4ae6cab07186e799fdf21a05061537bb4aa35c0f5ae6f4b58a1b158624ab3557", "source_body_sha256": "0d56bbbabff96629974915bc052296afc6a6a232c28f35b675aa08b67c03f028", "source_type": "abstract", "span": "abstract[521:1000]|norm=exact", "start": 521}, "secondaries": [{"body_file": null, "body_sha256": null, "end": 520, "pmcid": null, "pmid": "32433410", "quote_sha256": "a9851b79c3200e2e04d9d59e9a125d8d58ddb7a8fdccb26c29390b3ebad072c2", "source_body_sha256": "0d56bbbabff96629974915bc052296afc6a6a232c28f35b675aa08b67c03f028", "source_type": "abstract", "span": "abstract[376:520]|norm=exact", "start": 376}]}, "PMID:32433410:O2": {"pmid": "32433410", "primary": {"body_file": null, "body_sha256": null, "end": 1118, "pmcid": null, "pmid": "32433410", "quote_sha256": "683fe8f92927499d81e7fc6ca1d34687b0f3126736b8386a275aaeca43f65a99", "source_body_sha256": "0d56bbbabff96629974915bc052296afc6a6a232c28f35b675aa08b67c03f028", "source_type": "abstract", "span": "abstract[1001:1118]|norm=exact", "start": 1001}, "secondaries": []}, "PMID:33722583:O1": {"pmid": "33722583", "primary": {"body_file": null, "body_sha256": null, "end": 1079, "pmcid": null, "pmid": "33722583", "quote_sha256": "576e3d6cbda5f89bdf9669e8d7073d2b4790ee7419b3829c3e5b6611f34ba24d", "source_body_sha256": "2bd3c3d0f04b2df3cb049d3f27a910f75685850e45a20884584fdbf4bbb8efb9", "source_type": "abstract", "span": "abstract[866:1079]|norm=exact", "start": 866}, "secondaries": [{"body_file": null, "body_sha256": null, "end": 640, "pmcid": null, "pmid": "33722583", "quote_sha256": "900ab22870fcb54cd0202c5c006cc4bd9aa6bd82b32155aa33cbc9f7effb625f", "source_body_sha256": "2bd3c3d0f04b2df3cb049d3f27a910f75685850e45a20884584fdbf4bbb8efb9", "source_type": "abstract", "span": "abstract[401:640]|norm=exact", "start": 401}]}, "PMID:33722583:O2": {"pmid": "33722583", "primary": {"body_file": null, "body_sha256": null, "end": 1313, "pmcid": null, "pmid": "33722583", "quote_sha256": "4ac86a005ea480671beacd64eafe18aa59bea1b7c66a2b9869de81ff00509685", "source_body_sha256": "2bd3c3d0f04b2df3cb049d3f27a910f75685850e45a20884584fdbf4bbb8efb9", "source_type": "abstract", "span": "abstract[1080:1313]|norm=exact", "start": 1080}, "secondaries": []}, "PMID:33722583:O3": {"pmid": "33722583", "primary": {"body_file": null, "body_sha256": null, "end": 1641, "pmcid": null, "pmid": "33722583", "quote_sha256": "5254bb2bb2c1af0e8403d83ec49f1edeaedc63cac8d28012ecd91425693cc545", "source_body_sha256": "2bd3c3d0f04b2df3cb049d3f27a910f75685850e45a20884584fdbf4bbb8efb9", "source_type": "abstract", "span": "abstract[1314:1641]|norm=exact", "start": 1314}, "secondaries": []}, "PMID:34033222:O1": {"pmid": "34033222", "primary": {"body_file": null, "body_sha256": null, "end": 942, "pmcid": null, "pmid": "34033222", "quote_sha256": "1ff650d3f3042068342c679049a029055922349368d83a70bc87f1d32f93b80b", "source_body_sha256": "64aeb7c85b3e8979cc58bdbc3b7f510f23fe30fd6ca1bb9d48660fba2af5eb46", "source_type": "abstract", "span": "abstract[691:942]|norm=exact", "start": 691}, "secondaries": []}, "PMID:34033222:O2": {"pmid": "34033222", "primary": {"body_file": null, "body_sha256": null, "end": 1251, "pmcid": null, "pmid": "34033222", "quote_sha256": "10ca64785f68365e05a7410fe6e908428743f028182683346519afaf52e23481", "source_body_sha256": "64aeb7c85b3e8979cc58bdbc3b7f510f23fe30fd6ca1bb9d48660fba2af5eb46", "source_type": "abstract", "span": "abstract[943:1251]|norm=exact", "start": 943}, "secondaries": []}, "PMID:35046043:O1": {"pmid": "35046043", "primary": {"body_file": null, "body_sha256": null, "end": 976, "pmcid": null, "pmid": "35046043", "quote_sha256": "9b353fe049759be3d7ce5ee0fada4fafc17be9688e7767419aa1590f95e3715f", "source_body_sha256": "472f6fb75ac7814cc455d68e2326df3ebbf335513c67017c03b0ad02