Package com.articulate.sigma.trans
Class SUMOKBtoTFAKB
java.lang.Object
com.articulate.sigma.trans.SUMOKBtoTPTPKB
com.articulate.sigma.trans.SUMOKBtoTFAKB
-
Nested Class Summary
Nested classes/interfaces inherited from class com.articulate.sigma.trans.SUMOKBtoTPTPKB
SUMOKBtoTPTPKB.OrderedFormulae -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanstatic final Stringstatic booleanstatic final Stringstatic Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class com.articulate.sigma.trans.SUMOKBtoTPTPKB
alreadyWrittenTPTPs, axiomKey, CWA, excludedPredicates, FILTER_SIMPLE_ONLY, kb, rapidParsing, removeHOL, removeNum, removeStrings -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanbooleanTest whether the term one of the three TFF built-in types of $int, $rat and $real or subclassintGet the numerical suffix on a variable arity predicate for how many arguments it has (in a particular case of use)booleanTest whether the given relation has an argument that is a subclass of QuantitybooleanTest whether the given relation has an argument that could be a numbervoidinitOnce()static voidWill first write out SUMO.tptp if the KB had not yet been serialized, or serialized files are older than the sources, then, will write out a fresh SUMO.tff.static voidstatic booleanquantButNotBuiltInSubtype(String type, String s) Test whether the term is a subclass of Quantity but not a subclass of one of the three TFF built-in types of $int, $rat and $realstatic booleanquantButNotBuiltInType(String type, String s) Test whether the term is a subclass of Quantity but not a one of the three TFF built-in types of $int, $rat and $real or subclassstatic Stringstatic StringtranslateSort(KB kb, String s) Translate SUMO class names to their appropriate TFF sortvoidwriteRelationSort(String t, PrintWriter pw) Write signatures for relationsvoidwriteSort(String t, PrintWriter pw) Write sort for a termvoidCheck if the relation has a numeric argument that isn't completely specific, so that it needs special treatment to create versions for integers, reals and rationalsMethods inherited from class com.articulate.sigma.trans.SUMOKBtoTPTPKB
addToFile, buildExcludedPredicates, copyFile, extensionToLang, filterAxiom, filterAxiom, filterExcludePredicates, getInfFilename, getSanitizedKBname, langToExtension, printTFFNumericConstants, printTFFNumericConstants, printVariableArityRelationContent, writeFile, writeHeader
-
Field Details
-
lang
-
initialized
public static boolean initialized -
debug
public static boolean debug -
qChildren
-
iChildren
-
rChildren
-
lChildren
-
qNotR
-
qNotI
-
qNotL
-
INT_SUFFIX
- See Also:
-
REAL_SUFFIX
- See Also:
-
RAT_SUFFIX
- See Also:
-
ENTITY_SUFFIX
- See Also:
-
TFF_INT
- See Also:
-
TFF_REAL
- See Also:
-
TFF_RAT
- See Also:
-
TFF_ENTITY
- See Also:
-
sortLabels
-
-
Constructor Details
-
SUMOKBtoTFAKB
public SUMOKBtoTFAKB()
-
-
Method Details
-
initOnce
public void initOnce() -
hasNumericArg
Test whether the given relation has an argument that is a subclass of Quantity -
hasNumericSuperArg
Test whether the given relation has an argument that could be a number -
quantButNotBuiltInSubtype
Test whether the term is a subclass of Quantity but not a subclass of one of the three TFF built-in types of $int, $rat and $real -
quantButNotBuiltInType
Test whether the term is a subclass of Quantity but not a one of the three TFF built-in types of $int, $rat and $real or subclass -
builtInOrSubType
Test whether the term one of the three TFF built-in types of $int, $rat and $real or subclass -
translateSort
Translate SUMO class names to their appropriate TFF sort -
translateName
-
writeSort
Write sort for a term -
getVariableAritySuffix
Get the numerical suffix on a variable arity predicate for how many arguments it has (in a particular case of use) -
writeRelationSort
Write signatures for relations -
alreadyExtended
-
writeSorts
Check if the relation has a numeric argument that isn't completely specific, so that it needs special treatment to create versions for integers, reals and rationals -
printHelp
public static void printHelp() -
main
Will first write out SUMO.tptp if the KB had not yet been serialized, or serialized files are older than the sources, then, will write out a fresh SUMO.tff.- Parameters:
args- any given command line arguments (not currently used)
-