public class Reporter
extends Object
Modifier and Type | Field and Description |
---|---|
static String |
eol |
(package private) static chargerlib.GenericTextFrame |
summary |
static TermMapping |
tmap |
(package private) static ArrayList |
visited |
Constructor and Description |
---|
Reporter() |
Modifier and Type | Method and Description |
---|---|
static void |
displaySummary(JFrame owner) |
private static String |
formatRef(String referent) |
static String |
getKnowledgeSummary() |
static String |
natLang(Concept c,
boolean includeDefinitions)
Prepare a natural language rendition of the given concept.
|
static String |
natLang(GNode r,
boolean includeDefinitions)
Prepare a natural language rendition of the given relation, including its
concepts.
|
static String |
natLang(Graph g,
boolean includeDefinitions) |
static String |
natLang(TypeLabel t,
boolean includeDefinitions)
Prepare a natural language rendition of the given type label, including
its supertype(s).
|
static void |
startVisiting() |
private static String |
stripRef(String referent) |
static chargerlib.GenericTextFrame summary
public static TermMapping tmap
static ArrayList visited
public static String eol
public static void displaySummary(JFrame owner)
public static String getKnowledgeSummary()
public static void startVisiting()
public static String natLang(Graph g, boolean includeDefinitions)
private static String formatRef(String referent)
private static String stripRef(String referent)
public static String natLang(Concept c, boolean includeDefinitions)
c
- The concept to be rendered in natural languageincludeDefinitions
- whether to include definitions for this term if is has onepublic static String natLang(TypeLabel t, boolean includeDefinitions)
t
- The type label to be rendered.includeDefinitions
- whether to include definitions for terms if
they have onepublic static String natLang(GNode r, boolean includeDefinitions)
r
- The relation around which this sentence will be arrangedincludeDefinitions
- whether to include definitions for terms if
they have one