|
33 | 33 |
|
34 | 34 | import org.opensextant.howler.abstraction.Document; |
35 | 35 | import org.opensextant.howler.abstraction.Statement; |
36 | | -import org.opensextant.howler.kanban.elements.Sentence; |
| 36 | +import org.opensextant.howler.kanban.elements.KanbanSentence; |
37 | 37 | import org.opensextant.howler.owl.FromOWL; |
38 | 38 | import org.opensextant.howler.owl.ToOWL; |
39 | 39 | import org.opensextant.howler.text.FromText; |
| 40 | +import org.opensextant.howler.text.Sentence; |
40 | 41 | import org.opensextant.howler.text.TextDocument; |
41 | 42 | import org.opensextant.howler.text.ToText; |
42 | 43 | import org.semanticweb.owlapi.model.IRI; |
@@ -93,6 +94,7 @@ public Howler(String propertiesPath) { |
93 | 94 | File phraseFile = new File(baseDir, props.getProperty("os.howler.phrases")); |
94 | 95 |
|
95 | 96 | fromText = new FromText(lexiconFile, ngramFile, typeInfoFile, phraseFile); |
| 97 | + toText = new ToText(); |
96 | 98 |
|
97 | 99 | defaultNamespace = props.getProperty("os.howler.defaultNamespace"); |
98 | 100 |
|
@@ -137,17 +139,12 @@ public TextDocument toText(Document doc) { |
137 | 139 |
|
138 | 140 | /** |
139 | 141 | * Convert a single SPO to a sentence |
140 | | - * @param spo |
| 142 | + * @param statement |
141 | 143 | * the SPO to translate |
142 | 144 | * @return the sentence which is the equivalent of the input SPO |
143 | 145 | */ |
144 | | - public Sentence toText(Statement spo) { |
145 | | - //TODO not finished |
146 | | - org.opensextant.howler.text.Sentence zz = toText.convert(spo); |
147 | | - |
148 | | - Sentence sent = new Sentence(); |
149 | | - |
150 | | - return sent; // toText.convertAbstraction(spo); |
| 146 | + public Sentence toText(Statement statement) { |
| 147 | + return toText.convert(statement); |
151 | 148 | } |
152 | 149 |
|
153 | 150 | /** |
|
0 commit comments