public class Diagnostics
extends java.lang.Object
Constructor and Description |
---|
Diagnostics() |
Modifier and Type | Method and Description |
---|---|
static void |
addToDoubleMapList(java.util.TreeMap m,
java.lang.String key1,
java.lang.String key2,
java.lang.String value)
Add a key to a map and a key, value to the map
corresponding to the key.
|
static void |
addToMapList(java.util.TreeMap m,
java.lang.String key,
java.lang.String value)
Add a key to a map and a value to the ArrayList corresponding
to the key.
|
static java.util.ArrayList<java.lang.String> |
childrenOfDisjointParents(KB kb)
Return a list of terms that have parents which are disjoint.
|
static java.lang.String |
kbConsistencyCheck(KB kb)
Iterating through all formulas, return a proof of an inconsistent
or redundant one, if such a thing exists.
|
static void |
main(java.lang.String[] args)
Test method for this class.
|
static java.util.ArrayList<java.lang.String> |
membersNotInAnyPartitionClass(KB kb)
Returns a list of terms, each of which is an instance of some
exhaustively decomposed class but is not an instance of any of
the subclasses that constitute the exhaustive decomposition.
|
static java.lang.String |
printTermDependency(KB kb,
java.lang.String kbHref)
Show file dependencies.
|
static java.util.ArrayList<Formula> |
quantifierNotInBody(KB kb)
Find cases where a variable appears in a quantifier list, but not
in the body of the quantified expression.
|
static java.util.ArrayList<java.lang.String> |
termsNotBelowEntity(KB kb)
Return a list of terms that do not have Entity as a parent term.
|
static java.util.ArrayList<java.lang.String> |
termsWithMultipleDoc(KB kb)
Return a list of terms that have more than one documentation string.
|
static java.util.ArrayList |
termsWithoutDoc(KB kb)
Return a list of terms that do not have a documentation string.
|
static java.util.ArrayList<java.lang.String> |
termsWithoutRelation(KB kb,
java.lang.String rel,
int argnum,
int limit,
char letter)
Return a list of terms (for a given argument position) that do not
have a specified relation.
|
static java.util.ArrayList<java.lang.String> |
termsWithoutRules(KB kb)
Find all terms which do not appear in any implication (rule).
|
public static java.util.ArrayList<java.lang.String> termsWithoutRelation(KB kb, java.lang.String rel, int argnum, int limit, char letter)
kb
- the knowledge baserel
- the relation nameargnum
- the argument position of the termlimit
- the maximum number of results to return, or -1 if allletter
- the first letter of the term namepublic static java.util.ArrayList termsWithoutDoc(KB kb)
public static java.util.ArrayList<java.lang.String> termsWithMultipleDoc(KB kb)
public static java.util.ArrayList<java.lang.String> termsNotBelowEntity(KB kb)
public static java.util.ArrayList<java.lang.String> childrenOfDisjointParents(KB kb)
public static java.util.ArrayList<java.lang.String> membersNotInAnyPartitionClass(KB kb)
public static java.util.ArrayList<java.lang.String> termsWithoutRules(KB kb)
public static java.util.ArrayList<Formula> quantifierNotInBody(KB kb)
public static void addToMapList(java.util.TreeMap m, java.lang.String key, java.lang.String value)
public static void addToDoubleMapList(java.util.TreeMap m, java.lang.String key1, java.lang.String key2, java.lang.String value)
public static java.lang.String printTermDependency(KB kb, java.lang.String kbHref)
public static java.lang.String kbConsistencyCheck(KB kb)
public static void main(java.lang.String[] args)