sclass GlobalThoughtSpace extends AbstractThoughtSpace { // existence of triple has already been checked public GlobalID postTriple(T3 t, bool verified) { Bool prev = setThreadLocal(ai_postTriple_verified, verified); try { ret asGlobalID(post(str(t.a), str(t.b), str(t.c))); } finally { setThreadLocal(ai_postTriple_verified, prev); } } public GlobalID postTriple(T3 t) { ret asGlobalID(post(str(t.a), str(t.b), str(t.c))); } L> get(Symbol s) { ret tripleIndex().getTripleRefs(s); } L> get(Symbol s, int position) { ret tripleIndex().getTripleRefs(s, position); } L getTriples(Symbol s) { ret tripleIndex().getTriples(s); } L getTriples(Symbol s, int position) { ret tripleIndex().getTriples(s, position); } L getOneTwo(Symbol a, Symbol b) { ret tripleIndex().getOneTwo(a, b); } int size() { ret tripleIndex().numWebs(); } }