public class HTMLformatter extends Object
| Modifier and Type | Field and Description |
|---|---|
static ArrayList<String> |
availableFormalLanguages |
static String |
htmlDivider |
static String |
kbHref |
static String |
language |
| Constructor and Description |
|---|
HTMLformatter() |
| Modifier and Type | Method and Description |
|---|---|
static String |
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 String |
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.
|
static String |
createKBHref(String kbName,
String language)
Create the HTML for a single step in a proof.
|
static String |
createKBMenu(String kbName)
Create an HTML menu of KB names
|
static String |
createMenu(String menuName,
String selectedOption,
ArrayList<String> options)
Create an HTML menu, given an ArrayList of Strings.
|
static String |
createMenu(String menuName,
String selectedOption,
ArrayList<String> options,
String params)
Create an HTML menu with an ID, given an ArrayList of Strings.
|
static String |
createMultiMenu(String menuName,
TreeMap<String,String> options)
Create an HTML menu with an ID, given an ArrayList of
Strings, and possibly multiple selections.
|
static String |
createNumberedMenu(String menuName,
String selectedOption,
ArrayList<String> options)
Create an HTML menu, given an ArrayList of Strings where the
value(s) are String representations of int(s) but the displayed
menu items are String(s).
|
static String |
decodeFromHTML(String s)
change reserved characters to '&' tags
|
static String |
decodeFromURL(String s)
Change spaces to "%20"
|
static String |
encodeForHTML(String s)
change reserved characters from '&' tags
|
static String |
encodeForURL(String s)
Change spaces to "%20" along with many other URL codes.
|
static String |
formatConsistencyCheck(String msg,
String ccheckResult,
String language,
int page) |
static String |
formatErrors(KB kb)
hyperlink formulas in error messages.
|
static String |
formatFormulaList(ArrayList<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.
|
static String |
formatProofResult(ArrayList<BasicXMLelement> proof,
String stmt,
String processedStmt,
String lineHtml,
String kbName,
String language,
int answerOffset) |
static String |
formatProofResult(String result,
String stmt,
String processedStmt,
String lineHtml,
String kbName,
String language)
Create an HTML formatted result of a query.
|
static String |
formatProofResult(String result,
String stmt,
String processedStmt,
String lineHtml,
String kbName,
String language,
int answerOffset) |
static String |
formatTPTP3ProofResult(TPTP3ProofProcessor tpp,
String stmt,
String lineHtml,
String kbName,
String language) |
static ArrayList<String> |
getAllNonRelTerms(KB kb,
ArrayList<String> matchesList) |
static ArrayList<String> |
getAllRelTerms(KB kb,
ArrayList<String> matchesList) |
static String |
htmlDivider(String label)
Create the HTML for the labeled divider between the sections
of the term display.
|
static void |
main(String[] args) |
static String |
processFormalLanguage(String flang) |
static String |
processNaturalLanguage(String lang,
KB kb) |
static String |
proofTableFormat(String query,
ProofStep step,
String kbName,
String language)
Create the HTML for a single step in a proof.
|
static String |
showMap(KB kb,
String term)
Show a map if coordinates are given in the kb
|
static String |
showNeighborTerms(KB kb,
String term) |
static String |
showNeighborTerms(KB kb,
String nonRelTerm,
String relTerm)
Show alphabetic list of neighbor terms
|
static String |
showNumberPictures(KB kb,
String term,
int count)
Show knowledge base pictures
|
static String |
showPictures(KB kb,
String term)
Show knowledge base pictures
|
static String |
showREMatches(KB kb,
String relREmatch,
String nonRelREmatch,
String term)
Show list of 30 relation & nonRelation terms that contain a match to the input RE term.
|
static String |
showStatistics(KB kb)
Show knowledge base statistics
|
static String |
synsetList(ArrayList<String> synsets,
String kbHref)
Show a hyperlinked list of WordNet synsets.
|
static String |
termList(ArrayList<String> terms,
String kbHref)
Show a hyperlinked list of terms.
|
static String |
termMappingsList(String terms,
String kbHref)
Show a hyperlinked list of term mappings from WordNet.
|
public static String htmlDivider
public static String kbHref
public static String language
public static String htmlDivider(String label)
public static String createKBHref(String kbName, String language)
public static String proofTableFormat(String query, ProofStep step, String kbName, String language)
public static String termList(ArrayList<String> terms, String kbHref)
public static String showMap(KB kb, String term)
public static String showNumberPictures(KB kb, String term, int count)
public static String showNeighborTerms(KB kb, String nonRelTerm, String relTerm)
public static ArrayList<String> getAllNonRelTerms(KB kb, ArrayList<String> matchesList)
public static String showREMatches(KB kb, String relREmatch, String nonRelREmatch, String term)
public static String termMappingsList(String terms, String kbHref)
public static String synsetList(ArrayList<String> synsets, String kbHref)
public static String formatFormulaList(ArrayList<Formula> forms, String header, KB kb, String language, String flang, int start, int localLimit, String limitString)
public static String browserSectionFormatLimit(String term, String header, KB kb, String language, String flang, int start, int limit, int arg, String type)
public static String browserSectionFormat(String term, String header, KB kb, String language, String flang, int arg, String type)
public static String encodeForURL(String s)
public static String createNumberedMenu(String menuName, String selectedOption, ArrayList<String> options)
public static String createMenu(String menuName, String selectedOption, ArrayList<String> options)
public static String formatErrors(KB kb)
public static String createMultiMenu(String menuName, TreeMap<String,String> options)
public static String createMenu(String menuName, String selectedOption, ArrayList<String> options, String params)
public static String formatProofResult(String result, String stmt, String processedStmt, String lineHtml, String kbName, String language)
public static String formatProofResult(String result, String stmt, String processedStmt, String lineHtml, String kbName, String language, int answerOffset)
public static String formatTPTP3ProofResult(TPTP3ProofProcessor tpp, String stmt, String lineHtml, String kbName, String language)
public static String formatProofResult(ArrayList<BasicXMLelement> proof, String stmt, String processedStmt, String lineHtml, String kbName, String language, int answerOffset)
public static String formatConsistencyCheck(String msg, String ccheckResult, String language, int page)
public static void main(String[] args)
Copyright © 2015. All rights reserved.