public static String getNaturalLanguageDescription( String descriptionKBSyntax, AbstractReasonerComponent service) throws ParseException { Description d = KBParser.parseConcept(descriptionKBSyntax); NaturalLanguageDescriptionConvertVisitor visitor = new NaturalLanguageDescriptionConvertVisitor(service); d.accept(visitor); String ret = visitor.getDescription(); return ret; }
public static String getNaturalLanguageDescription( Description description, AbstractReasonerComponent service) { NaturalLanguageDescriptionConvertVisitor visitor = new NaturalLanguageDescriptionConvertVisitor(service); description.accept(visitor); String ret = visitor.getDescription(); return ret; }