public class EditGUI extends Object
| Modifier and Type | Field and Description |
|---|---|
static ArrayList<String> |
allowedTerms |
static boolean |
initOnce |
| Constructor and Description |
|---|
EditGUI() |
| Modifier and Type | Method and Description |
|---|---|
static String |
assertFacts(KB kb,
TreeMap<String,ArrayList<String>> cbset,
String kbHref)
Interpret a map as a key relation name and ArrayList of values as arguments.
|
static ArrayList<String> |
genAllParentList(KB kb,
String term)
Get the all parent classes of term.
|
static HashMap<String,ArrayList<ArrayList<String>>> |
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 String |
genClassPage(KB kb,
String term,
String kbHref)
Generate a set of menus comprising relations that apply to this class
i.e.
|
static ArrayList<String> |
genImmedParentList(KB kb,
String term)
Get the just the immediate parent classes of a term
|
static HashMap<String,ArrayList<ArrayList<String>>> |
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 String |
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.
|
String |
genRelPage(KB kb,
String rel) |
static void |
initOnce() |
static void |
main(String[] args)
A test method.
|
static String |
printInstances(KB kb,
String className)
Get and print all instances of a class
|
public static void initOnce()
public static String printInstances(KB kb, String className)
public static ArrayList<String> genAllParentList(KB kb, String term)
public static ArrayList<String> genImmedParentList(KB kb, String term)
public static HashMap<String,ArrayList<ArrayList<String>>> genInstList(KB kb, String term)
public static HashMap<String,ArrayList<ArrayList<String>>> genClassList(KB kb, String term)
public static String genInstPage(KB kb, String term, String kbHref)
public static String genClassPage(KB kb, String term, String kbHref)
public static String assertFacts(KB kb, TreeMap<String,ArrayList<String>> cbset, String kbHref)
public static void main(String[] args)
Copyright © 2015. All rights reserved.