Skip to content

Commit 2545306

Browse files
author
dlutz2
committed
Adjustments to Kanban, fixed bug with labels with punct and formatting
1 parent 7aadf32 commit 2545306

18 files changed

Lines changed: 5923 additions & 5278 deletions

src/org/opensextant/howler/Howler.java

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333

3434
import org.opensextant.howler.abstraction.Document;
3535
import org.opensextant.howler.abstraction.Statement;
36-
import org.opensextant.howler.kanban.elements.KanbanSentence;
3736
import org.opensextant.howler.owl.FromOWL;
3837
import org.opensextant.howler.owl.ToOWL;
3938
import org.opensextant.howler.text.FromText;
@@ -194,24 +193,40 @@ public Properties getProperties() {
194193
return properties;
195194
}
196195

197-
/**
198-
* Gets the text factory.
199-
* @return the text factory used by this Howler.
200-
*/
201-
public FromText getTextFactory() {
196+
public Document convertText(String title, String text) {
197+
return fromText.convertText(text, IRI.create(defaultNamespace, title.replace(" ", "_")), title);
198+
}
199+
200+
public FromText getFromText() {
202201
return fromText;
203202
}
204203

205-
/**
206-
* Gets the OWL factory.
207-
* @return the OWL factory used by this Howler.
208-
*/
209-
public FromOWL getOwlFactory() {
204+
public void setFromText(FromText fromText) {
205+
this.fromText = fromText;
206+
}
207+
208+
public ToText getToText() {
209+
return toText;
210+
}
211+
212+
public void setToText(ToText toText) {
213+
this.toText = toText;
214+
}
215+
216+
public FromOWL getFromOWL() {
210217
return fromOWL;
211218
}
212219

213-
public Document convertText(String title, String text) {
214-
return fromText.convertText(text, IRI.create(defaultNamespace, title.replace(" ", "_")), title);
220+
public void setFromOWL(FromOWL fromOWL) {
221+
this.fromOWL = fromOWL;
222+
}
223+
224+
public ToOWL getToOWL() {
225+
return toOWL;
226+
}
227+
228+
public void setToOWL(ToOWL toOWL) {
229+
this.toOWL = toOWL;
215230
}
216231

217232
}

src/org/opensextant/howler/abstraction/Vocabulary.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class Vocabulary {
5050
/*--- Nouns ---*/
5151
public static final CommonNoun THING = new CommonNoun("thing", THING_IRI);
5252
public static final CommonNoun NOTHING = new CommonNoun("no thing", NOTHING_IRI);
53-
// public static final DataType DATAVALUE = new DataType("data value", DATATYPE_THING_IRI,DataTypeCategory.OTHER);
53+
// public static final DataType DATAVALUE = new DataType("data value", DATATYPE_THING_IRI,DataTypeCategory.OTHER);
5454
public static final CommonNoun ITSELF = new CommonNoun("itself", ITSELF_IRI);
5555

5656
/*--- Builtin scoped predicates ---*/
@@ -73,11 +73,11 @@ public class Vocabulary {
7373
public static final GenericWord HAS_AUX = new GenericWord("has", "VB");
7474
public static final GenericWord INVERSE_OF = new GenericWord("the inverse of", "ZZ");
7575

76-
/* -------- parts of conjunctions/disjuntions -------*/
76+
/* -------- parts of conjunctions/disjuntions ------- */
7777
public static final GenericWord EITHER = new GenericWord("either", "ZZ");
7878
public static final GenericWord BOTH = new GenericWord("both", "ZZ");
7979
public static final GenericWord EXCLUSIVE = new GenericWord("exclusively", "ZZ");
80-
80+
8181
/*-----punctuation -----*/
8282
public static final GenericWord DQUOTE = new GenericWord("\"", "DQUOTE");
8383
public static final GenericWord PERIOD = new GenericWord(".", "PERIOD");
@@ -161,7 +161,7 @@ public class Vocabulary {
161161
IRI.create("http://www.w3.org/2001/XMLSchema#anyURI"), DataTypeCategory.OTHER);
162162
public static final DataType DATE_TYPE = new DataType("date datatype",
163163
IRI.create("http://www.w3.org/2001/XMLSchema#date"), DataTypeCategory.DATE);
164-
164+
165165
/*--- Builtin Predicates ---*/
166166
public static final AnnotationPredicate BACKWARD = new AnnotationPredicate("is backward compatible with",
167167
IRI.create(OWLNamespace.toString(), "backwardCompatibleWith"));

0 commit comments

Comments
 (0)