Package com.articulate.sigma
Class EditGUI
java.lang.Object
com.articulate.sigma.EditGUI
A class that generates a GUI for elements of the ontology.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringInterpret a map as a key relation name and ArrayList of values as arguments.genAllParentList(KB kb, String term) Get the all parent classes of term.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 StringgenClassPage(KB kb, String term, String kbHref) Generate a set of menus comprising relations that apply to this class i.e.genImmedParentList(KB kb, String term) Get the just the immediate parent classes of a termgenInstList(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 StringgenInstPage(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.genRelPage(KB kb, String rel) static voidinitOnce()static voidA test method.static StringprintInstances(KB kb, String className) Get and print all instances of a class
-
Field Details
-
allowedTerms
-
initOnce
public static boolean initOnce
-
-
Constructor Details
-
EditGUI
public EditGUI()
-
-
Method Details
-
initOnce
public static void initOnce() -
genRelPage
-
printInstances
Get and print all instances of a class -
genAllParentList
Get the all parent classes of term. Return the full transitive closure of instance and subclass through the subclass relation all the way to the root term of the hierarchy.- Returns:
- an ArrayList of term strings
-
genImmedParentList
Get the just the immediate parent classes of a term- Returns:
- an ArrayList of term strings
-
genInstList
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.- Returns:
- a map of relation name keys and array values, where each element of the array is a particular argument, and consists of an array of possible string values.
-
genClassList
Collect a set of relations in which the type of given term is an argument subclass, and collect the set of possible argument fillers.- Returns:
- a map of relation name keys and array values, where each element of the array is a particular argument, and consists of an array of possible string values.
-
genInstPage
Generate fields for an HTML form that allow a user to assert statements by using menus to set parameters that are arguments to relations. -
genClassPage
Generate a set of menus comprising relations that apply to this class i.e. which has (domainSubclass [relation] [N] [thisclass]) If the allowedTerms list is non-empty, ensure that only terms in that list are used. -
assertFacts
Interpret a map as a key relation name and ArrayList of values as arguments.- Returns:
- a String status message that includes a hyperlinked presentation of each formula that is successfully asserted.
-
main
A test method.
-