1 | please include function ai_invalidatedWebs. |
2 | |
3 | static int ai_deleteInvalidTriples() { |
4 | new Matches m; |
5 | int count = 0; |
6 | for (TripleWeb w : ai_triples("$X", "is", "invalid")) |
7 | if (swic_trim(w.a, "Web ", m) && isGlobalID($1)) { |
8 | S id = $1; |
9 | |
10 | if (eq(id, "rjncddmdgpisijjq")) print("rjncddmdgpisijjq!"); |
11 | |
12 | TripleWeb ww = tripleIndex().getTriple(asGlobalID(id)); |
13 | if (ww != null) ++count; |
14 | tripleIndex().removeTriple(ww); |
15 | ai_invalidatedWebs_cache_put(asGlobalID(id), w.globalID()); |
16 | } |
17 | if (count > 0) print("Deleted " + n2(count, "invalid triple")); |
18 | ret count; |
19 | } |
Began life as a copy of #1012788
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1012789 |
Snippet name: | ai_deleteInvalidTriples |
Eternal ID of this version: | #1012789/9 |
Text MD5: | fd2cfabfaaf3d75d16f1eacaa84b0af2 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-15 00:02:46 |
Source code size: | 627 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 494 / 493 |
Version history: | 8 change(s) |
Referenced in: | [show references] |