|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cyc.tool.subl.util.SubLTrampolineFile
com.cyc.tool.subl.util.SubLTranslatedFile
com.cyc.cycjava.cycl.kb_mapping
public final class kb_mapping
Nested Class Summary | |
---|---|
static class |
kb_mapping.$assertion_with_search_term$UnaryFunction
|
static class |
kb_mapping.$gather_assertions$UnaryFunction
|
Nested classes/interfaces inherited from class com.cyc.tool.subl.util.SubLTranslatedFile |
---|
SubLTranslatedFile.SubL |
Fields inherited from class com.cyc.tool.subl.util.SubLTranslatedFile |
---|
EMPTY_SUBL_OBJECT_ARRAY |
Method Summary | |
---|---|
static SubLObject |
declare_kb_mapping_file()
|
void |
declareFunctions()
Declares the mapping between functions and symbols for all named functions defined in the file. |
static SubLObject |
gather_assertions(SubLObject assertion)
|
static SubLObject |
gather_decontextualized_ist_predicate_rule_index(SubLObject pred,
SubLObject sense,
SubLObject direction)
Return a list of all non-gaf assertions (rules) such that: a) if SENSE is :pos, it has PRED as a predicate in a positive literal wrapped in #$ist b) if SENSE is :neg, it has PRED as a predicate in a negative literal wrapped in #$ist c) if DIRECTION is non-nil, then DIRECTION must be its direction. |
static SubLObject |
gather_exception_rule_index(SubLObject rule,
SubLObject mt,
SubLObject direction)
Return a list of all non-gaf assertions (rules) such that: a) it has a positive literal of the form (abnormal |
static SubLObject |
gather_function_extent_index(SubLObject func)
Return a list of all #$termOfUnit assertions such that: FUNC is the functor of the naut arg2. |
static SubLObject |
gather_function_rule_index(SubLObject func,
SubLObject mt,
SubLObject direction)
Return a list of all non-gaf assertions (rules) such that: a) it has a negative literal of the form (termOfUnit |
static SubLObject |
gather_gaf_arg_index(SubLObject v_term,
SubLObject argnum,
SubLObject pred,
SubLObject mt,
SubLObject truth)
Return a list of all gaf assertions such that: a) TERM is its ARGNUMth argument b) if TRUTH is non-nil, then TRUTH is its truth value c) if PRED is non-nil, then PRED must be its predicate d) if MT is non-nil, then MT must be its microtheory (and PRED must be non-nil). |
static SubLObject |
gather_genl_mt_rule_index(SubLObject genl_mt,
SubLObject sense,
SubLObject rule_mt,
SubLObject direction)
Return a list of all non-gaf assertions (rules) such that: a) if SENSE is :pos, it has a positive literal of the form (genlMt |
static SubLObject |
gather_genls_rule_index(SubLObject collection,
SubLObject sense,
SubLObject mt,
SubLObject direction)
Return a list of all non-gaf assertions (rules) such that: a) if SENSE is :pos, it has a positive literal of the form (genls |
static SubLObject |
gather_index_in_any_mt(SubLObject v_term,
SubLObject remove_duplicatesP)
Return a list of all assertions indexed via TERM. |
static SubLObject |
gather_index(SubLObject v_term,
SubLObject remove_duplicatesP)
Return a list of all mt-relevant assertions indexed via TERM. |
static SubLObject |
gather_isa_rule_index(SubLObject collection,
SubLObject sense,
SubLObject mt,
SubLObject direction)
Return a list of all non-gaf assertions (rules) such that: a) if SENSE is :pos, it has a positive literal of the form (isa |
static SubLObject |
gather_mt_index(SubLObject v_term)
Return a list of all assertions such that TERM is its microtheory. |
static SubLObject |
gather_other_index(SubLObject v_term)
Return a list of other assertions mentioning TERM but not indexed in any other more useful manner. |
static SubLObject |
gather_pragma_rule_index(SubLObject rule,
SubLObject mt,
SubLObject direction)
Return a list of all non-gaf assertions (rules) such that: a) it has a positive literal of the form (meetsPragmaticRequirement |
static SubLObject |
gather_predicate_extent_index(SubLObject pred,
SubLObject mt,
SubLObject truth)
Return a list of all gaf assertions such that: a) PRED is its predicate b) if TRUTH is non-nil, then TRUTH is its truth value c) if MT is non-nil, then MT must be its microtheory. |
static SubLObject |
gather_predicate_rule_index(SubLObject pred,
SubLObject sense,
SubLObject mt,
SubLObject direction)
Return a list of all non-gaf assertions (rules) such that: a) if SENSE is :pos, it has PRED as a predicate in a positive literal b) if SENSE is :neg, it has PRED as a predicate in a negative literal c) if MT is non-nil, then MT must be its microtheory d) if DIRECTION is non-nil, then DIRECTION must be its direction. |
static SubLObject |
gather_quoted_isa_rule_index(SubLObject collection,
SubLObject sense,
SubLObject mt,
SubLObject direction)
Return a list of all non-gaf assertions (rules) such that: a) if SENSE is :pos, it has a positive literal of the form (quotedIsa |
static SubLObject |
init_kb_mapping_file()
|
void |
initializeVariables()
Initializes all global variables and private internal variables for constants defined in the file. |
static SubLObject |
map_mt_contents(SubLObject function,
SubLObject v_term,
SubLObject truth,
SubLObject gafs_only)
Apply FUNCTION to each assertion with TRUTH in MT TERM. |
static SubLObject |
map_mt_index(SubLObject function,
SubLObject mt,
SubLObject truth,
SubLObject gafs_only)
Apply FUNCTION to each assertion with TRUTH at mt index MT. |
static SubLObject |
map_nart_arg_index(SubLObject subl_function,
SubLObject v_term,
SubLObject argnum,
SubLObject cycl_function)
Apply FUNCTION to each #$termOfUnit assertion whose arg2 is a naut which mentions TERM in position ARGNUM. |
static SubLObject |
map_other_index(SubLObject function,
SubLObject v_term,
SubLObject truth,
SubLObject gafs_only)
Apply FUNCTION to each assertion with TRUTH at other index TERM. |
static SubLObject |
map_predicate_rule_index(SubLObject function,
SubLObject pred,
SubLObject sense,
SubLObject direction,
SubLObject mt)
Apply FUNCTION to each rule assertion which contains a SENSE-lit with predicate PRED and has direction DIRECTION. |
void |
runTopLevelForms()
Runs all top-level forms in order. |
static SubLObject |
setup_kb_mapping_file()
|
Methods inherited from class com.cyc.tool.subl.util.SubLTranslatedFile |
---|
extractFunctionNamed |
Methods inherited from class com.cyc.tool.subl.util.SubLTrampolineFile |
---|
checkType, enforceType, extractBinaryFunc, extractCount, extractEnd, extractEndUsingSize, extractPackage, extractStart, extractUnaryFunc, main |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SubLFile me
public static final java.lang.String myName
public static final SubLList $list0
public static final SubLSymbol $sym1$PRED
public static final SubLSymbol $sym2$DO_INTERMEDIATE_INDEX
public static final SubLSymbol $sym3$PWHEN
public static final SubLSymbol $sym4$RELEVANT_PRED_
public static final SubLList $list5
public static final SubLSymbol $sym6$MT
public static final SubLSymbol $sym7$RELEVANT_MT_
public static final SubLList $list8
public static final SubLSymbol $sym9$CANDIDATE_DIRECTION
public static final SubLSymbol $sym10$COR
public static final SubLSymbol $sym11$NULL
public static final SubLList $list12
public static final SubLSymbol $sym13$DO_FINAL_INDEX
public static final SubLSymbol $sym14$ASSERTION_MATCHES_TRUTH_
public static final SubLSymbol $sym15$FUNCTION_SPEC_P
public static final SubLSymbol $sym16$POSITIVE_INTEGER_P
public static final SubLSymbol $kw17$MAPPING_DONE
public static final SubLSymbol $kw18$GAF
public static final SubLSymbol $sym19$SENSE_P
public static final SubLSymbol $kw20$RULE
public static final SubLSymbol $sym21$MAP_TERM
public static final SubLList $list22
public static final SubLString $str23$Apply_FUNCTION_to_each_assertion_
public static final SubLList $list24
public static final SubLList $list25
public static final SubLSymbol $sym26$MAP_TERM_SELECTIVE_INTERNAL
public static final SubLSymbol $sym27$MAP_TERM_SELECTIVE
public static final SubLList $list28
public static final SubLString $str29$Apply_FUNCTION_to_each_assertion_
public static final SubLList $list30
public static final SubLSymbol $sym31$MAP_TERM_GAFS
public static final SubLList $list32
public static final SubLString $str33$Apply_FUNCTION_to_every_gaf_index
public static final SubLString $str34$mapping_broad_mt_index
public static final SubLSymbol $sym35$STRINGP
public static final SubLSymbol $kw36$SKIP
public static final SubLSymbol $sym37$MAP_MT_CONTENTS
public static final SubLList $list38
public static final SubLString $str39$Apply_FUNCTION_to_each_assertion_
public static final SubLSymbol $sym40$MAP_MT_INDEX
public static final SubLList $list41
public static final SubLString $str42$Apply_FUNCTION_to_each_assertion_
public static final SubLSymbol $sym43$MAP_OTHER_INDEX
public static final SubLString $str44$Apply_FUNCTION_to_each_assertion_
public static final SubLString $str45$So_don_t_
public static final SubLString $str46$Can_t_gather_unknown_auxiliary_in
public static final SubLSymbol $sym47$GATHER_INDEX
public static final SubLList $list48
public static final SubLString $str49$Return_a_list_of_all_mt_relevant_
public static final SubLList $list50
public static final SubLSymbol $sym51$RELEVANT_MT_IS_EVERYTHING
public static final SubLObject $const52$EverythingPSC
public static final SubLSymbol $sym53$GATHER_INDEX_IN_ANY_MT
public static final SubLString $str54$Return_a_list_of_all_assertions_i
public static final SubLSymbol $kw55$TRUE
public static final SubLSymbol $sym56$GATHER_GAF_ARG_INDEX
public static final SubLList $list57
public static final SubLString $str58$Return_a_list_of_all_gaf_assertio
public static final SubLList $list59
public static final SubLSymbol $sym60$GATHER_GAF_ARG_INDEX_WITH_PREDICATE
public static final SubLList $list61
public static final SubLSymbol $sym62$GATHER_NART_ARG_INDEX
public static final SubLList $list63
public static final SubLString $str64$Return_a_list_of_all___termOfUnit
public static final SubLSymbol $sym65$GATHER_PREDICATE_EXTENT_INDEX
public static final SubLList $list66
public static final SubLString $str67$Return_a_list_of_all_gaf_assertio
public static final SubLSymbol $sym68$GATHER_FUNCTION_EXTENT_INDEX
public static final SubLList $list69
public static final SubLString $str70$Return_a_list_of_all___termOfUnit
public static final SubLSymbol $sym71$GATHER_PREDICATE_RULE_INDEX
public static final SubLList $list72
public static final SubLString $str73$Return_a_list_of_all_non_gaf_asse
public static final SubLList $list74
public static final SubLSymbol $sym75$GATHER_DECONTEXTUALIZED_IST_PREDICATE_RULE_INDEX
public static final SubLList $list76
public static final SubLString $str77$Return_a_list_of_all_non_gaf_asse
public static final SubLSymbol $sym78$GATHER_ISA_RULE_INDEX
public static final SubLList $list79
public static final SubLString $str80$Return_a_list_of_all_non_gaf_asse
public static final SubLSymbol $sym81$GATHER_QUOTED_ISA_RULE_INDEX
public static final SubLString $str82$Return_a_list_of_all_non_gaf_asse
public static final SubLSymbol $sym83$GATHER_GENLS_RULE_INDEX
public static final SubLString $str84$Return_a_list_of_all_non_gaf_asse
public static final SubLSymbol $sym85$GATHER_GENL_MT_RULE_INDEX
public static final SubLList $list86
public static final SubLString $str87$Return_a_list_of_all_non_gaf_asse
public static final SubLSymbol $sym88$GATHER_FUNCTION_RULE_INDEX
public static final SubLList $list89
public static final SubLString $str90$Return_a_list_of_all_non_gaf_asse
public static final SubLSymbol $sym91$GATHER_EXCEPTION_RULE_INDEX
public static final SubLList $list92
public static final SubLString $str93$Return_a_list_of_all_non_gaf_asse
public static final SubLSymbol $sym94$GATHER_PRAGMA_RULE_INDEX
public static final SubLString $str95$Return_a_list_of_all_non_gaf_asse
public static final SubLSymbol $sym96$RELEVANT_MT_IS_EQ
public static final SubLSymbol $sym97$GATHER_ASSERTIONS
public static final SubLSymbol $sym98$GATHER_MT_INDEX
public static final SubLList $list99
public static final SubLString $str100$Return_a_list_of_all_assertions_s
public static final SubLSymbol $sym101$GATHER_OTHER_INDEX
public static final SubLString $str102$Return_a_list_of_other_assertions
public static final SubLSymbol $sym103$GATHER_TERM_ASSERTIONS
public static final SubLList $list104
public static final SubLString $str105$Return_a_list_of_all_mt_relevant_
public static final SubLSymbol $sym106$FORT_P
public static final SubLSymbol $sym107$GATHER_META_ASSERTIONS
Method Detail |
---|
public static final SubLObject map_nart_arg_index(SubLObject subl_function, SubLObject v_term, SubLObject argnum, SubLObject cycl_function)
public static final SubLObject map_predicate_rule_index(SubLObject function, SubLObject pred, SubLObject sense, SubLObject direction, SubLObject mt)
public static final SubLObject map_mt_contents(SubLObject function, SubLObject v_term, SubLObject truth, SubLObject gafs_only)
public static final SubLObject map_mt_index(SubLObject function, SubLObject mt, SubLObject truth, SubLObject gafs_only)
public static final SubLObject map_other_index(SubLObject function, SubLObject v_term, SubLObject truth, SubLObject gafs_only)
public static final SubLObject gather_index(SubLObject v_term, SubLObject remove_duplicatesP)
public static final SubLObject gather_index_in_any_mt(SubLObject v_term, SubLObject remove_duplicatesP)
public static final SubLObject gather_gaf_arg_index(SubLObject v_term, SubLObject argnum, SubLObject pred, SubLObject mt, SubLObject truth)
public static final SubLObject gather_predicate_extent_index(SubLObject pred, SubLObject mt, SubLObject truth)
public static final SubLObject gather_function_extent_index(SubLObject func)
public static final SubLObject gather_predicate_rule_index(SubLObject pred, SubLObject sense, SubLObject mt, SubLObject direction)
public static final SubLObject gather_decontextualized_ist_predicate_rule_index(SubLObject pred, SubLObject sense, SubLObject direction)
public static final SubLObject gather_isa_rule_index(SubLObject collection, SubLObject sense, SubLObject mt, SubLObject direction)
public static final SubLObject gather_quoted_isa_rule_index(SubLObject collection, SubLObject sense, SubLObject mt, SubLObject direction)
public static final SubLObject gather_genls_rule_index(SubLObject collection, SubLObject sense, SubLObject mt, SubLObject direction)
public static final SubLObject gather_genl_mt_rule_index(SubLObject genl_mt, SubLObject sense, SubLObject rule_mt, SubLObject direction)
public static final SubLObject gather_function_rule_index(SubLObject func, SubLObject mt, SubLObject direction)
public static final SubLObject gather_exception_rule_index(SubLObject rule, SubLObject mt, SubLObject direction)
public static final SubLObject gather_pragma_rule_index(SubLObject rule, SubLObject mt, SubLObject direction)
public static final SubLObject gather_mt_index(SubLObject v_term)
public static final SubLObject gather_other_index(SubLObject v_term)
public static final SubLObject gather_assertions(SubLObject assertion)
public static final SubLObject declare_kb_mapping_file()
public static final SubLObject init_kb_mapping_file()
public static final SubLObject setup_kb_mapping_file()
public void declareFunctions()
SubLFile
public void initializeVariables()
SubLFile
public void runTopLevelForms()
SubLFile
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |