Skip to content

Commit 7aadf32

Browse files
author
dlutz2
committed
Updated Kanban to use 0.2 models
1 parent c91aae9 commit 7aadf32

6 files changed

Lines changed: 152 additions & 122 deletions

File tree

src/org/opensextant/howler/Howler.java

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@
3333

3434
import org.opensextant.howler.abstraction.Document;
3535
import org.opensextant.howler.abstraction.Statement;
36-
import org.opensextant.howler.kanban.elements.Sentence;
36+
import org.opensextant.howler.kanban.elements.KanbanSentence;
3737
import org.opensextant.howler.owl.FromOWL;
3838
import org.opensextant.howler.owl.ToOWL;
3939
import org.opensextant.howler.text.FromText;
40+
import org.opensextant.howler.text.Sentence;
4041
import org.opensextant.howler.text.TextDocument;
4142
import org.opensextant.howler.text.ToText;
4243
import org.semanticweb.owlapi.model.IRI;
@@ -93,6 +94,7 @@ public Howler(String propertiesPath) {
9394
File phraseFile = new File(baseDir, props.getProperty("os.howler.phrases"));
9495

9596
fromText = new FromText(lexiconFile, ngramFile, typeInfoFile, phraseFile);
97+
toText = new ToText();
9698

9799
defaultNamespace = props.getProperty("os.howler.defaultNamespace");
98100

@@ -137,17 +139,12 @@ public TextDocument toText(Document doc) {
137139

138140
/**
139141
* Convert a single SPO to a sentence
140-
* @param spo
142+
* @param statement
141143
* the SPO to translate
142144
* @return the sentence which is the equivalent of the input SPO
143145
*/
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);
151148
}
152149

153150
/**

0 commit comments

Comments
 (0)