Uses of Class
com.articulate.sigma.KB
Packages that use KB
Package
Description
Provides classes for the Sigma knowledge engineering environment version developed
at Articulate Software Inc.
Provides classes for natural language generation in the Sigma knowledge engineering environment version developed
at Articulate Software Inc.
Provides classes for translation to other logical languages in the Sigma
knowledge engineering environment version developed at Articulate Software Inc.
Provides classes for handling Wordnets.
-
Uses of KB in com.articulate.sigma
Fields in com.articulate.sigma declared as KBModifier and TypeFieldDescriptionprotected KBDocGen.kbThe KB associated with this DocGen object.protected KBDocGen.PresentationNameComparator.kbInferenceTestSuite.kbKBcache.kbstatic KBProlog.kbFields in com.articulate.sigma with type parameters of type KBModifier and TypeFieldDescriptionKBmanager.kbsDocGen.relationsByKBA Map in which each key is a KB name and the corresponding value is a List of the Predicates defined in the KB.Methods in com.articulate.sigma that return KBModifier and TypeMethodDescriptionDocGen.getKB()DocGen.PresentationNameComparator.getKB()Get the KB that has the given name.static KBDiagnostics.makeEmptyKB(String kbName) Make an empty KB for use in Diagnostics.Methods in com.articulate.sigma that return types with arguments of type KBMethods in com.articulate.sigma with parameters of type KBModifier and TypeMethodDescriptionThere are two type conditions: one type condition is extracted from domain expression; second type condition is specifically defined in the antecedent of a rule with an instance or subclass expressionstatic voidMake a table of terms and the files in which they are definedFormulaPreprocessor.addTypeRestrictions(Formula form, KB kb) Add clauses for every variable in the antecedent to restrict its type to the type restrictions defined on every relation in which it appears.static StringInterpret a map as a key relation name and ArrayList of values as arguments.static StringHTMLformatter.browserSectionFormat(String term, String header, KB kb, String language, String flang, int arg, String type) Create the HTML for a section of the Sigma term browser page.static StringHTMLformatter.browserSectionFormatLimit(String term, String header, KB kb, String language, String flang, int start, int limit, int arg, String type) Create the HTML for a section of the Sigma term browser page.booleanKBcache.checkDisjoint(KB kb, String c1, String c2) Check if given classes are disjointbooleanKBcache.checkDisjoint(KB kb, Set<String> typeSet) check if there are any two types in typeSet are disjoint or not;KifFileChecker.CheckFormulaPreprocess(String fileName, KB kb, Formula f, int formulaStartLine, List<ErrRec> msgs) Run FormulaPreprocessor and record errors/warnings.static voidKifFileChecker.CheckIsValidFormula(String fileName, Formula f, int formulaStartLine, KB kb, String formulaText, List<ErrRec> msgs) Check if the formula is structurally valid in the KB.static voidKifFileChecker.CheckSUMOtoTFAformErrors(String fileName, KB kb, Formula f, int formulaStartLine, Set<Formula> processed, List<ErrRec> msgs) Correct invocation of SUMO→TFA translation errors.static voidKifFileChecker.CheckTermsBelowEntity(String fileName, Formula f, int formulaStartLine, String formulaText, KB kb, Set<String> localIndividuals, Set<String> localSubclasses, List<ErrRec> msgs) Check that all terms are below Entity in the KB hierarchy.static voidDiagnostics.childrenOfDisjointParents(KB kb) Return a list of terms that have parents which are disjoint.KB.collectSourceAxioms(KB kb, TPTP3ProofProcessor tpp) Attempt to provide guidance on the likely cause of a contradiction by removing the axioms involved in a contradiction one-by-one and trying again.FormulaPreprocessor.computeVariableTypes(Formula form, KB kb) This method returns a HashMap that maps each String variable in this the names of types (classes) of which the variable must be an instance or the names of types of which the variable must be a subclass.static voidKB.contradictionHelp(KB kb, String[] args, int timeout) Attempt to provide guidance on the likely cause of a contradiction by removing the axioms involved in a contradiction one-by-one and trying again.KButilities.countFormulaTypes(KB kb) Get count of all the different kinds of formulas as to their logical expressivitystatic voidKButilities.countProcesses(KB kb) static voidKButilities.countRelations(KB kb) static voidKButilities.countStringWords(KB kb) Count the number of words in all the strings in a knowledge baseDocGen.createAllStatements(KB kb, String kbHref, String term, int limit) Create an HTML page that lists information about a particular term, with a limit on how many statements of each type should be displayed.DocGen.createAlphaList(KB kb) protected StringDocGen.createBelongsToClass(KB kb, String kbHref, String term, String language) Returns a String containing HTML markup for the Belongs to Class section of an HTML page displaying the partial definition of term in kb.protected StringDocGen.createBelongsToClass(KB kb, String kbHref, String term, String language, Set<String> parents) Returns a String containing HTML markup for the Belongs to Class section of an HTML page displaying the partial definition of term in kb.Graph.createBoundedSizeGraph(KB kb, String term, String relation, int size, boolean instances, String language) Create a graph of a bounded size by incrementing the number of levels above and below until the limit is reached or there are no more levels in the knowledge base from the given term and relation.protected StringDocGen.createChildren(KB kb, String kbHref, String term, String language) Returns a String containing HTML markup for the Children field of an HTML page displaying the definition of term in kb.protected StringDocGen.createComments(KB kb, String kbHref, String term, String language) Returns a String containing the HTML markup for the Comment field in a page displaying the definition of term in kb.protected StringDocGen.createCompositeComponentLine(KB kb, String kbHref, String term, int indent, String language) Returns a String containing HTML markup for a single table row in the Composite Component section of an HTML page displaying the partial definition of term in kb.DocGen.createCompositePage(KB kb, String kbHref, String term, Map<String, Map<String, List<String>>> alphaList, int limit, String language, String formatToken) Create an HTML page that lists information about a particular composite term, which is a representation of an XML structure.protected ListDocGen.createCompositeRecurse(KB kb, String term, boolean isAttribute, int indent) Recursively computes and then returns a List that constitutes the graph containing those XML elements and attributes syntactically subordinate to term in kb.protected StringDocGen.createContainingCompositeComponentLine(KB kb, String kbHref, String containingComp, String instance, int indent, String language) Returns a String containing HTML markup for a row displaying a contained component in an HTML page displaying the partial definition of instance in kb.protected StringDocGen.createDisplayNames(KB kb, String kbHref, String term, String formatToken) Returns a String containing HTML markup for the Display Labels field of an HTML page displaying statements about term in kb.protected StringDocGen.createDocs(KB kb, String kbHref, String term, String language) Returns a String consisting of HTML markup for a documentation String for term obtained from kb and indexed by language.booleanGraph.createDotGraph(KB kb, String term, String relation, int above, int below, int limitInt, String fname, String fileRestrict) Create a ArrayList with a set of terms comprising a hierarchy in a format suitable for GraphViz' input format http://www.graphviz.org.static StringEditor.createFormPage(KB kb, String term, Formula f) Create an HTML form for editing facts about a term.protected StringDocGen.createFormula(KB kb, String kbHref, String indentSeq, int level, String previousTerm, String currentTerm, String context) Returns a String containing HTML markup for a SUO-KIF Formula.Graph.createGraph(KB kb, String term, String relation, int above, int below, int termLimit, boolean instances, String language) Create an ArrayList with a set of terms comprising a hierarchy Each term String will be prefixed with an appropriate number of indentChars.protected StringDocGen.createHasSameComponents(KB kb, String kbHref, String term, String language) Returns a String containing HTML markup for the Has Same Components As field of an HTML page displaying the definition of term in kb.protected StringReturns a String containing HTML markup for the Instances section of an HTML page displaying the definition of term in kb.DocGen.createPage(KB kb, String kbHref, String term, Map<String, Map<String, List<String>>> alphaList, int limit, String language, String formatToken) Create an HTML page that lists information about a particular term, with a limit on how many statements of each type should be displayed.protected StringReturns a String containing HTML markup for the Parents field of an HTML page displaying the definition of term in kb.protected StringReturns a String containing HTML markup for the Relations section of an HTML page displaying the definition of term in kb.protected StringDocGen.createSynonyms(KB kb, String kbHref, String term, String formatToken) Returns a String containing HTML markup for the synonym field of an HTML page displaying the definition of term in kb.protected StringDocGen.createUsingSameComponents(KB kb, String kbHref, String term, String language) Returns a String containing HTML markup for the Composites Using Same Components field of an HTML page displaying the definition of term in kb.static voiddiff the terms in two KBs (small first, then big) and print all the remainder with their filename and termFormatsRowVars.expandRowVars(KB kb, Formula f) Expand row variables, keeping the information about the original source formula.voidDB.exportTable(KB kb) Export a comma-delimited table of all the ground binary statements in the knowledge base.FormulaPreprocessor.findAllTypeRestrictions(Formula form, KB kb) protected ListDocGen.findContainingComposites(KB kb, String term) Returns an ArrayList holding the composite entities (Elements) that contain term, or returns an empty ArrayList.FormulaPreprocessor.findExplicitTypes(KB kb, Formula form) Collect variable names and their types from instance or subclass expressions.voidFormulaPreprocessor.findExplicitTypesClasses(KB kb, Formula form, Map<String, Set<String>> varExplicitTypes, Map<String, Set<String>> varExplicitClasses) Collect variable names and their types from instance or subclass expressions.FormulaPreprocessor.findExplicitTypesClassesInAntecedent(KB kb, Formula form) Collect the types of any variables that are specifically defined in the antecedent of a rule with an instance expression; Collect the super classes of any variables that are specifically defined in the antecedent of a rule with an subclass expression;FormulaPreprocessor.findExplicitTypesInAntecedent(KB kb, Formula form) Collect the types of any variables that are specifically defined in the antecedent of a rule with an instance or subclass expression.static voidFormulaPreprocessor.findExplicitTypesRecurse(KB kb, Formula form, boolean isNegativeLiteral, Map<String, Set<String>> varExplicitTypes, Map<String, Set<String>> varExplicitClasses) Recursively collect a variable name and its types.PredVarInst.findPredVarTypes(Formula f, KB kb) Get a set of all the types for predicate variables in the formula.static StringFind the argument type restriction for a given predicate and argument number that is inherited from one of its super-relations.FormulaPreprocessor.findTypeRestrictions(Formula form, KB kb) Find all the type restrictions on the variables in a formula, including constraints from relation argument typing as well as explicitly stated types from instance and subclass expressions.protected StringDocGen.formatCompositeHierarchy(KB kb, String kbHref, List hier, String language) Returns a String containing HTML markup for a hierarchy or tree display of terms that denote nested composite components.protected StringDocGen.formatContainingComposites(KB kb, String kbHref, List containing, String composite, String language) Given the SUO-KIF statements: (hasXmlElement PartyDescriptor LocalInstance_2_459) (datatype LocalInstance_2_459 PartyId) (documentation LocalInstance_2_459 PartyDescriptor "A Composite containing details...") show PartyDescriptor as one of the "containing composites" of PartyId, and show the documentation for the instance node next to the parent composite.static StringHTMLformatter.formatErrorsWarnings(Set<String> list, KB kb) hyperlink formulas in error messages.static StringHTMLformatter.formatFormulaList(List<Formula> forms, String header, KB kb, String language, String flang, int start, int localLimit, String limitString) Create the HTML for a section of the Sigma term browser page.PredVarInst.gatherPredVarRecurse(KB kb, Formula f) Get a set of all the predicate variables in the formula.PredVarInst.gatherPredVars(KB kb, Formula f) Collect and return all predicate variables for the given formulaFormula.gatherRelationsWithArgTypes(KB kb) Returns a HashMap in which the keys are the Relation constants gathered from this Formula, and the values are ArrayLists in which the ordinal positions 0 - n are occupied by the names of the corresponding argument types.static voidKButilities.genAllAlphaHTMLDoc(KB kb) Generate a HTML list of terms and their documentation strings from a file as upper and lowercase individual files so that each file isn't giganticstatic voidGenerate a textual list of all documentation strings and write to a file.static voidKButilities.genAllHTMLDoc(KB kb) Generate a HTML list of terms and their documentation strings from a file.EditGUI.genAllParentList(KB kb, String term) Get the all parent classes of term.EditGUI.genClassList(KB kb, String term) Collect a set of relations in which the type of given term is an argument subclass, and collect the set of possible argument fillers.static StringEditGUI.genClassPage(KB kb, String term, String kbHref) Generate a set of menus comprising relations that apply to this class i.e.static voidGenerate a textual list of terms and their documentation strings from a file.static StringKButilities.generateAllNL(KB kb) Generate line pairs of formula and NL paraphrase of formulavoidDB.generateDB(KB kb) Generate an SQL database from the knowledge base Tables must be defined as instances of invalid input: '&'%DatabaseTable and must have invalid input: '&'%localDocumentation and invalid input: '&'%HasDatabaseColumn relations.static StringKButilities.generateFormulasAndDoc(KB kb) Find all formulas in which the SUMO term is involved.voidDocGen.generateHTML(KB kb, String language, boolean simplified, String formatToken) Generate simplified HTML pages for all terms.DocGen.generateHTMLPages(KB kb, Map<String, Map<String, List<String>>> alphaList, String language, String formatToken) KButilities.generateSemNetNeighbors(KB kb, boolean cached, boolean strings, boolean links, String term, int count) voidDocGen.generateSingleHTML(KB kb, String language, boolean simplified) voidDocGen.generateSingleHTML(KB kb, String dir, Map<String, Map<String, List<String>>> alphaList, String language, boolean simplified) Generate a single HTML page showing all terms.protected StringGenerate an alphabetic HTML list that points to the individual index pages (which collect all terms or term formats) starting with a particular letter.protected StringDocGen.generateTOCPage(KB kb, String firstLetter, Map<String, Map<String, List<String>>> alphaList, String language) Generate an HTML page that lists term name and its documentationEditGUI.genImmedParentList(KB kb, String term) Get the just the immediate parent classes of a termEditGUI.genInstList(KB kb, String term) Collect a set of relations in which the type of given term is an argument instance type, and collect the set of possible argument fillers.static StringEditGUI.genInstPage(KB kb, String term, String kbHref) Generate fields for an HTML form that allow a user to assert statements by using menus to set parameters that are arguments to relations.EditGUI.genRelPage(KB kb, String rel) static voidKButilities.genSpecificTermDoc(KB kb, String file, String lang) Generate a HTML list of terms and their documentation strings from a file.KButilities.getAllFormulasOfTerm(KB kb, String term) Find all formulas in which the SUMO term is involved.HTMLformatter.getAllNonRelTerms(KB kb, List<String> matchesList) HTMLformatter.getAllRelTerms(KB kb, List<String> matchesList) DocGen.getAlphaList(KB kb) protected StringDocGen.getClosestXmlDataType(KB kb, String term) DocGen.getCodedIdentifiers(KB kb) Collects and returns the Set containing all known coded identifiers in kb, including ISO code values stated to be such.protected ListDocGen.getContainingComposites(KB kb, String term) Travels up the HasXmlElement and HasXmlAttribute relation hierarchies to collect all parents, and returns them in an ArrayList.protected StringDocGen.getContextualDocumentation(KB kb, String term, List contexts) Returns the first documentation String obtained for term in kb, using the List of namespaces or other contextualizing terms in contexts.static intKButilities.getCountNonLinguisticAxioms(KB kb) static intKButilities.getCountTermFormats(KB kb, String lang) Get count of all the termFormat strings for the given languagestatic intKButilities.getCountUniqueTermFormats(KB kb, String lang) Get count of all the termFormat strings for unique SUMO terms for the given language.protected ListDocGen.getDatatypeTerms(KB kb, String term, int targetArgnum) static StringKButilities.getDocumentation(KB kb, String term) protected StringDocGen.getFirstContainingClass(KB kb, String term) Returns a SUO-KIF constant that denotes the first containing Class of term obtained in kb.protected StringDocGen.getFirstDatatype(KB kb, String term) protected StringDocGen.getFirstGeneralTerm(KB kb, String term) Returns the first containing, subsuming, or superordinate entity that can be found for term in kb.DocGen.getFirstGeneralTerms(KB kb, String term) Returns a List of the first containing, subsuming, or superordinate entities found for term in kb.static StringDocGen.getFirstHtmlFormatToken(KB kb, String ontology) Returns the first String token retrieved from ontology in kb that denotes an HTML output format.DocGen.getFirstInstances(KB kb, String term) Returns a List of the entities that are immediate instances of term in kb.DocGen.getFirstSpecificTerms(KB kb, String term) Returns a List of the first instances or syntactic subordinate entities that can be found for term in kb.DocGen.getFirstSubClasses(KB kb, String term) Returns a List containing the immediate SUO-KIF subclasses of term in kb.protected StringDocGen.getFirstSubsumingTerm(KB kb, String term) Returns the first purely "subsuming" entity that can be found for term in kb, assuming that term denotes a Class or a Relation.protected StringDocGen.getFirstTermFormat(KB kb, String term, List contexts) Returns a String that is the first termFormat value obtained for term in kb, else returns null if no termFormat value exists.static DocGenDocGen.getInstance(KB kb, String ontology) KButilities.getLabelsForTerm(KB kb, String term, String lang) Generate a HTML list of labels from termFormats TODO: Does this work? Only returning an empty ListKButilities.getLinkedTermsInDoc(KB kb, String term) protected StringFormulaPreprocessor.getMostRelevantType(KB kb, Set<String> types) Get the most specific type for variables.DocGen.getNamespaceDelimiters(KB kb, String ontology) Returns a List of all Strings used as namespace delimiters in terms defined or referred to in ontology, as specified by statements formed with the SUO-KIF predicate docGenNamespaceDelimiter.protected StringDocGen.getNamespacePrefix(KB kb, String term) Returns the namespace prefix of term based on the namespaces known in kb, else returns the empty String if term appears to have no namespace prefix.DocGen.getNamespaces(KB kb, String ontology, boolean force) Returns a List of all SUO-KIF terms denoting namespaces in kb or in ontology, using the predicates inNamespace and ontologyNamespace.protected StringDocGen.getNearestContainingClass(KB kb, String term) Returns the first containing Class that can be found for term in kb.DocGen.getOntology(KB kb) Returns a term denoting the default Ontology for this DocGen object if an Ontology has been set, and tries very hard to find a relevant Ontology if one has not been set.DocGen.getOntologyNamespaces(KB kb, String ontology) Returns a List of all SUO-KIF terms denoting those namespaces containing terms that are defined in, or occur in, statements in ontology.DocGen.getOutputFormatTokens(KB kb, String ontology) Returns a List of String tokens that determine how the output should be formatted.DocGen.getPredicates(KB kb, boolean requireNamespace) Collects and returns a List of all Predicates in kb.DocGen.getRangeValueList(KB kb, String predicate) Returns an ArrayList of Strings extracted from the range argument (arg2) of the first retrieved statement formed with predicate.DocGen.getSubComponents(KB kb, String term) Returns a List containing those terms that are immediate syntactic subordinates of term in kb.protected ListDocGen.getSubordinateAttributes(KB kb, String kifTerm) Returns a List containing the subordinate XmlAttributes of kifTerm, else return an empty List.protected ListDocGen.getSubordinateElements(KB kb, String kifTerm) Returns a List containing the subordinate XmlElements of kifTerm, else return an empty List.DocGen.getSuperComponents(KB kb, String term) Returns a List containing those terms that are immediate syntactic superiors or "containers" of term in kb.protected ListDocGen.getSyntacticCompositeTerms(KB kb, String term, int targetArgnum) protected ListDocGen.getSyntacticExtensionTerms(KB kb, String term, int targetArgnum, boolean computeClosure) DocGen.getSyntacticSubordinateTerms(KB kb, String term) Returns a List of the entities that are immediate syntactic subordinates of term in kb.protected ListDocGen.getSyntacticUnionTerms(KB kb, String term, int targetArgnum) static StringMapping.getTermFormat(KB kb, String term) Get the termFormat label for a term.DocGen.getTermNamespace(KB kb, String term) DocGen.getTermPresentationName(KB kb, String term) DocGen.getTermPresentationName(KB kb, String namespace, String term) DocGen.getTermPresentationName(KB kb, String namespace, String term, boolean withSpanTags) Formula.getVarType(KB kb, String var) Returns the type of a variable or null if it doesn't exist.Formula.getVarTypes(KB kb) Returns a map of the variable types.PredVarInst.handleDoubles(KB kb) A bit of a hack to produce the statements that would result from the only two axioms in SUMO with two predicate variablesstatic StringPredVarInst.hasCorrectArity(Formula f, KB kb) If arity is correct, return null, otherwise, return the predicate that has its arity violated in the given formula.static booleanKButilities.hasCorrectTypes(KB kb, Formula f) Checks for consistent typing in the given formulaprotected booleanDocGen.hasSubComponents(KB kb, String term) Returns true if term has syntactic subcomponents such as XML elements or XML attributes in kb, else returns false.Formula.htmlFormat(KB kb, String href) Format a formula for HTML presentation.InferenceTestSuite.inferenceUnitTest(String testpath, KB kb) The method will be called in InferenceTest in unit test; It takes a TQG file path, reading the kif statements and queries and expected answers; It parses the theorem prover's inference output for actual answers; Note that this procedure DOES NOT delete any prior user assertions.static CCheckManager.CCheckStatusKBmanager.initiateCCheck(KB kb, String chosenEngine, String systemChosen, String location, String language, int timeout) static booleanKButilities.instanceOfInstanceP(KB kb) Find all cases of where (instance A B) (instance B C) as well as all cases of where (instance A B) (instance B C) (instance C D).PredVarInst.instantiatePredVars(Formula input, KB kb) static booleanKButilities.isAttribute(KB kb, String term) static booleanstatic booleanDocGen.isComposite(KB kb, String term) Returns true if term is an instance or subclass of CompositeContentBearingObject in kb, else returns false.protected booleanDocGen.isDataType(KB kb, String term) booleanFormula.isEpistemic(KB kb) static booleanKButilities.isFunction(KB kb, String term) booleanFormula.isHigherOrder(KB kb) Test whether a Formula contains a Formula as an argument to other than a logical operator.booleanReturns true only if this Formula is a horn clause or is simply modified to be horn by breaking out a conjunctive conclusion.static booleanKButilities.isInstance(KB kb, String term) protected static booleanDocGen.isInstanceOf(KB kb, String i, String c) Returns true if i is an instance of c, else returns false.booleanbooleanFormula.isOtherHOL(KB kb) static booleanKButilities.isRelation(KB kb, String term) booleanFormula.isSimpleClause(KB kb) Test whether a Formula is a simple list of terms (including functional terms).booleanFormula.isSimpleNegatedClause(KB kb) Test whether a Formula is a simple clause wrapped in a negation.protected static booleanDocGen.isSkipNode(KB kb, String term) Returns true if term should be skipped over during printing, else returns false.booleanFormula.isTemporal(KB kb) booleanstatic booleanKButilities.isValidFormula(KB kb, String form) Checks for overall validity of the given formulastatic booleanKButilities.isVariableArity(KB kb, String term) protected booleanDocGen.isXmlAttribute(KB kb, String term) Returns a List that constitutes the graph containing those XML elements and attributes syntactically subordinate to term in kb.static StringDiagnostics.kbConsistencyCheck(KB kb) Iterating through all formulas, return a proof of an inconsistent or redundant one, if such a thing exists.voidKBmanager.loadKBforInference(KB kb) static List<Set<VariableMapping>> Formula.mapFormulaVariables(Formula f1, Formula f2, KB kb, Map<FormulaUtil.FormulaMatchMemoMapKey, List<Set<VariableMapping>>> memoMap) Compares two formulae by recursively traversing its predicate structure and by building possible variable maps between the variables of the two formulae.Diagnostics.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.voidExperimental: Utility method to perform a merge with the KB inpututility method to merge two HashMaps of String keys and a values of an HashSet of Strings.CCheckManager.performConsistencyCheck(KB kb, String chosenEngine, String systemChosen, String location, String language, int timeout) Main code that performs the consistency check on the KB.FormulaPreprocessor.preProcess(Formula form, boolean isQuery, KB kb) Pre-process a formula before sending it to the theorem prover.static voidDiagnostics.printAllTerms(KB kb) static StringEditGUI.printInstances(KB kb, String className) Get and print all instances of a classstatic StringDiagnostics.printTermDependency(KB kb, String kbHref) Show file dependencies.protected StringDocGen.processDocString(KB kb, String kbHref, String namespace, String docString, boolean isXmlDoc, boolean addHrefs) static StringHTMLformatter.processNaturalLanguage(String lang, KB kb) Diagnostics.quantifierNotInBody(KB kb) Find cases where a variable appears in a quantifier list, but not in the body of the quantified expression.Diagnostics.quantifierNotInBody(KB kb, String fname) Find cases where a variable appears in a quantifier list, but not in the body of the quantified expression.Diagnostics.relationsWithoutFormat(KB kb) Find all relational terms that are missing an NLG format expressionprotected StringDocGen.removeLinkableNamespacePrefixes(KB kb, String text) Removes namespace prefixes from all SUO-KIF terms to be hyperlinked in text.static StringFormula.removeTemporalRelations(String p_f, KB kb) The purpose is to take simple HOL formula with temporal aspects and remove temporal aspects of it in an attempt to take it to FOL.Formula.renameVariableArityRelations(KB kb, Map<String, String> relationMap) FormulaPreprocessor.replacePredVarsAndRowVars(Formula form, KB kb, boolean addHoldsPrefix) Tries to successively instantiate predicate variables and then expand row variables in this Formula, looping until no new Formulae are generated.static voidInferenceTestSuite.resetAllForInference(KB kb) Undo all parts of the state that have anything to do with user assertions made during inference.DocGen.resortKbTerms(KB kb) Rebuilds the TreeSet containing all terms in kb, and forces the new TreeSet to sort according to each term's presentation name.Thin wrapper for the JSP buttons: returns PASS/FAIL + time + a tiny HTML summary.protected voidDocGen.saveIndexPages(KB kb, Map<String, Map<String, List<String>>> alphaList, String dir, String language) Generate and save all the index pages that link to the individual term pages.KButilities.semnetAsJSON3(KB kb, boolean cached, boolean strings) voidvoidvoidDocGen.setMetaDataFromKB(KB kb, String ontology) Tries to use the values obtained from kb and ontology to set some of the parameter values used for HTML generation.voidDocGen.setOutputParentDir(KB kb, String ontology) Sets the parent directory in which subdirectories for different types of output files will be created to the abstract pathname represented by a statement in kb formed with the predicate docGenOutputParentDirectory and the argument ontology.protected StringDocGen.showCardinalityCell(KB kb, String kbHref, String term, String context) Returns a String containing HTML markup for the Cardinality field of an HTML page displaying the definition of term in kb.static StringHTMLformatter.showLanguageStats(KB kb, String lang) Show knowledge base statisticsstatic StringShow a map if coordinates are given in the kbstatic StringHTMLformatter.showNeighborTerms(KB kb, String term) static StringHTMLformatter.showNeighborTerms(KB kb, String nonRelTerm, String relTerm) Show alphabetic list of neighbor termsstatic StringHTMLformatter.showNumberPictures(KB kb, String term, int count) Show knowledge base picturesstatic StringHTMLformatter.showPictures(KB kb, String term) Show knowledge base picturesstatic StringHTMLformatter.showREMatches(KB kb, String relREmatch, String nonRelREmatch, String term) Show list of 30 relation invalid input: '&' nonRelation terms that contain a match to the input RE term.static StringHTMLformatter.showStatistics(KB kb) Show knowledge base statistics with caching.DocGen.showTermName(KB kb, String term, String language) Returns the termFormat entry for term in kb and language, otherwise returns the termFormat entry for term in English, otherwise just returns the term name.voidDocGen.sortByPresentationName(KB kb, String namespaceTerm, List<String> stringList) Sorts stringList in place by the presentation name of each its terms, which could be very different from the raw term name.protected StringDocGen.stripNamespacePrefix(KB kb, String term) Returns term without its namespace prefix if it appears to have one in kb, else just returns term.Diagnostics.termCapDiff(KB kb) Find all terms that differ only in capitalizationstatic voidDiagnostics.termDefsByFile(KB kb) Make a table of terms and the files in which they are definedstatic voidDiagnostics.termDefsByGivenFile(KB kb, Set<String> files) Make a table of terms and the files in which they are definedstatic StringKButilities.termFormatIndex(KB kb) List all the terms and their termFormat expressions.KButilities.termIntersection(KB kb, String term1, String term2) Get all formulas that contain both terms.static booleanDiagnostics.termNotBelowEntity(String term, KB kb) Return a list of terms that do not have Entity as a parent term.Diagnostics.termsNotBelowEntity(KB kb) Return a list of terms that do not have Entity as a parent term.Diagnostics.termsWithMultipleDoc(KB kb) Return a list of terms that have more than one documentation string.static ListDiagnostics.termsWithoutDoc(KB kb) Return a list of terms that do not have a documentation string.Diagnostics.termsWithoutRelation(KB kb, String rel, int argnum, char letter) Return a list of terms (for a given argument position) that do not have a specified relation.Diagnostics.termsWithoutRules(KB kb) Find all terms which do not appear in any implication (rule).static booleanDiagnostics.termWithoutRules(KB kb, String term) Term does not appear in any implication (rule).static StringReads a KIF file consisting of pairs of (sentence...Convenience method that sets default parametersThe main method that controls running a set of tests and returning the result as an HTML page showing test results and links to proofs.Convenience method that sets some default parametersprotected StringDocGen.toKifNamespace(KB kb, String term) Returns a SUO-KIF term denoting a namespace.Diagnostics.unquantsInConseq(KB kb) voidFormulaPreprocessor.winnowTypeList(Set<String> types, KB kb) This method tries to remove all but the most specific relevant classes from a List of sortal classes.static voidKButilities.writeDisplayText(KB kb, String displayFormatPredicate, String displayTermPredicate, String language, String fname) static intDB.writeSuoKifStatements(KB kb, String sourceFilePath) Writes to sourceFilePath all Formulae in kb that have sourceFilePath as source file.Constructors in com.articulate.sigma with parameters of type KB -
Uses of KB in com.articulate.sigma.dataProc
Methods in com.articulate.sigma.dataProc with parameters of type KB -
Uses of KB in com.articulate.sigma.nlg
Methods in com.articulate.sigma.nlg with parameters of type KBModifier and TypeMethodDescriptionstatic booleanNLGUtils.containsProcess(Collection<String> vals, KB kb) Return true if the given list includes "Process", or if one of its elements is a subclass of Process.static StringSumoProcessCollector.getProperFormOfEntity(String entity, KB kb) Retain capitalization of names and reified instances by lower-casing if the entity is an Entity.SumoProcessEntityProperty.getSurfaceFormForNoun(String noun, KB kb) For a given property, combine it with the given noun into a natural-sounding expression.static StringNLGUtils.htmlParaphrase(String href, String stmt, Map<String, String> phraseMap, Map<String, String> termMap, KB kb, String language) Hyperlink terms in a natural language format string.static voidstatic booleanNoun.takesIndefiniteArticle(String noun, KB kb) Determine whether the given noun requires an indefinite article ("a"/"an").static CaseRoleCaseRole.toCaseRole(String input, KB kb) Return a valid case role based on the string input.voidLanguageFormatterStack.translateCurrProcessInstantiation(KB kb, Formula formula) If possible, translate the process instantiation and insert the translation into the topmost stack element.static StringLanguageFormatter.variableReplace(String form, Map<String, Set<String>> instMap, Map<String, Set<String>> classMap, KB kb, String language) Replace variables in a formula with paraphrases expressing their type.Constructors in com.articulate.sigma.nlg with parameters of type KBModifierConstructorDescriptionLanguageFormatter(String stmt, Map<String, String> phraseMap, Map<String, String> termMap, KB kb, String language) Sentence(com.google.common.collect.Multimap<CaseRole, String> roles, SumoProcess process, KB inKB, com.google.common.collect.Multimap<String, SumoProcessEntityProperty> properties) Constructor.SumoProcess(SumoProcess process, KB kb) SumoProcess(String verb, KB kb) SumoProcessCollector(KB kb, String role, String process, String entity) Construct a SumoProcessCollector. -
Uses of KB in com.articulate.sigma.parsing
Fields in com.articulate.sigma.parsing declared as KBConstructors in com.articulate.sigma.parsing with parameters of type KBModifierConstructorDescriptionPredVarInst(KB kbin) Preprocessor(KB kbin) VarTypes(Collection<FormulaAST> set, KB kbinput) -
Uses of KB in com.articulate.sigma.tp
Methods in com.articulate.sigma.tp with parameters of type KBModifier and TypeMethodDescriptionbooleanEProver.assertFormula(String userAssertionTPTP, KB kb, EProver eprover, List<Formula> parsedFormulas, boolean tptp) Add an assertion for inference.static booleanLEO.assertFormula(String userAssertionTPTP, KB kb, List<Formula> parsedFormulas, boolean tptp) Add an assertion for inference.static booleanVampire.assertFormula(String userAssertionTPTP, KB kb, List<Formula> parsedFormulas, boolean tptp) Add an assertion for inference.LEO.getUserAssertions(KB kb) Vampire.getUserAssertions(KB kb) voidCreates a running instance of LEO-III adding a set of statements in THF language to a file and then calling LEO.voidCreates a running instance of Vampire adding a set of statements in TFF or TPTP language to a file and then calling Vampire.EProver.submitQuery(String formula, KB kb) Submit a query. -
Uses of KB in com.articulate.sigma.trans
Fields in com.articulate.sigma.trans declared as KBModifier and TypeFieldDescriptionstatic KBDB2KIF.kbstatic KBKIF2DB.kbKIF2SQL.kbOWLtranslator.kbSUMOKBtoTPTPKB.kbstatic KBSUMOtoTFAform.kbMethods in com.articulate.sigma.trans with parameters of type KBModifier and TypeMethodDescriptionstatic voidModals.addAccrelnDef(KB kb) Add the signature for the Kripke accessibility relationstatic FormulaTHFnew.adjustArity(KB kb, Formula f) Adding the world argument messes up pre-processing for variable arity relations, so we have to decrement the numerical suffix as a hack.static voidTHFnew.analyzeBadUsages(KB kb) static StringCWAUNA.buildExclusions(KB kb, String rel) build the big axiom that creates the closed word for each closed relationstatic booleanIs there a citation as a containsFormula relation for this axiom?static voidModals.doTQM10Tests(KB kb) Tests based on ~/workspace/sumo/tests/TQM10.kif Uses same KB instance as main methodstatic booleanDecide whether to exclude a formula from THF export.static booleanTHFnew.excludeNonModal(Formula f, KB kb, Writer out) TPTP3ProofProcessor.findTypesForSkolemTerms(KB kb) *************************************************************** Returns the most specific type for skolem variable.static voidTPTPGenerationManager.generateFOF(KB kb) Generate FOF (First-Order Form) TPTP file for a KB.static voidTPTPGenerationManager.generateProperFile(KB kb, String lang) static StringTPTPutil.getCitationString(String sumoStep, String stepName, KB kb) Is there a citation as a containsFormula relation for this axiom?static FormulaModals.handleHOL3pred(Formula f, KB kb, Integer worldNum) Handle the predicates given in regHOL3pred, which have a parameter followed by a formula.static FormulaModals.handleHOLpred(Formula f, KB kb, Integer worldNum) Handle predicates in regHOLpred that take an individual and a formula argument, e.g.static FormulaModals.handleModalAttribute(Formula f, KB kb, Integer worldNum) Handle the predicate modalAttribute: (modalAttribute F M) is read as: "F holds in all worlds accessible via modality M".THF.KIF2THF(Collection<Formula> axiomsC, Collection<Formula> conjecturesC, KB kb) The main function to convert KIF problems into TPTP THF representation; see the explanation at top of this file.static StringTHFnew.makeWorldVar(KB kb, Formula f) THF.oneKIF2THF(Formula form, boolean conjecture, KB kb) static voidTHFnew.oneTrans(KB kb, Formula f, PrintWriter bw) static voidTHFnew.oneTransNonModal(KB kb, Formula f, Writer bw) TPTP3ProofProcessor.parseAnswerTuples(List<String> st, String strQuery, KB kb, StringBuilder qlist) *************************************************************** Return a list of answers if prover finds bindings for wh- queries.voidTPTP3ProofProcessor.parseProofFromFile(String filename, KB kb) ***************************************************************voidTPTP3ProofProcessor.parseProofOutput(LineNumberReader lnr, KB kb) *************************************************************** Compute bindings and proof from theorem prover's responsevoidTPTP3ProofProcessor.parseProofOutput(String st, KB kb) ***************************************************************voidTPTP3ProofProcessor.parseProofOutput(List<String> lines, String kifQuery, KB kb, StringBuilder qlist) Parses TPTP (Thousands of Problems for Theorem Provers) proof output from a theorem prover and extracts proof steps, answer bindings, and status information.static FormulaModals.processModals(Formula f, KB kb) static FormulaModals.processRecurse(Formula f, KB kb, Integer worldNum) Collect all constants for types (and subclasses) required for ClosedWorldPredicate(s) and their subrelation(s) and assert them as $distinct.static voidCollect all constants used in ClosedWorldPredicate(s) and their subrelation(s) and assert them as $distinct.static StringBuild a THF type string from a SUMO signature.static StringTHFnew.sigStringNonModal(String pred, List<String> sig, KB kb, boolean function) static voidstatic voidDeprecated.voidSUMOformulaToTPTPformula.tptpParse(Formula input, boolean query, KB kb, Set<Formula> preProcessedForms) Deprecated.static StringSUMOKBtoTFAKB.translateSort(KB kb, String s) Translate SUMO class names to their appropriate TFF sortTHF.transModalTHF(KB kb) static voidTHFnew.transModalTHF(KB kb) static voidTHFnew.transPlainTHF(KB kb) static booleanTHFnew.variableArity(KB kb, String pred) static voidTHFnew.writeIntegerTypes(KB kb, Writer out) static voidstatic voidTHFnew.writeTypes(KB kb, Writer out) static voidTHFnew.writeTypesNonModal(KB kb, Writer out) -
Uses of KB in com.articulate.sigma.VerbNet
Fields in com.articulate.sigma.VerbNet declared as KB -
Uses of KB in com.articulate.sigma.wordNet
Methods in com.articulate.sigma.wordNet with parameters of type KBModifier and TypeMethodDescriptionstatic voidOMWordnet.generateOMWOWLformat(KB kb) WordNet.nounSynsetFromTermFormat(String tf, String SUMOterm, KB kb) Generate a new noun synset from a termFormatvoidWordNet.synsetFromTermFormat(Formula form, String tf, String SUMOterm, KB kb) Generate a new synset from a termFormat statementWNdiagnostics.synsetsWithoutFoundTerms(KB kb) voidWordNet.termFormatsToSynsets(KB kb) Generate a new synset from a termFormatWordNet.verbSynsetFromTermFormat(String tf, String SUMOterm, KB kb) Generate a new verb synset from a termFormatvoidWordNet.writeProlog(KB kb)