diff --git a/src/org/opensextant/howler/abstraction/Vocabulary.java b/src/org/opensextant/howler/abstraction/Vocabulary.java index 2887c9e..61814e2 100644 --- a/src/org/opensextant/howler/abstraction/Vocabulary.java +++ b/src/org/opensextant/howler/abstraction/Vocabulary.java @@ -69,7 +69,7 @@ public class Vocabulary { /* ------- parts of predicate expressions ------- */ public static final GenericWord IS_AUX = new GenericWord("is", "VB"); - public static final GenericWord IMPLIES = new GenericWord("implies", "VB"); + public static final GenericWord IMPLIES = new GenericWord("implies", "VB"); public static final GenericWord DOES_AUX = new GenericWord("does", "VB"); public static final GenericWord HAS_AUX = new GenericWord("has", "VB"); public static final GenericWord INVERSE_OF = new GenericWord("the inverse of", "ZZ"); diff --git a/src/org/opensextant/howler/kanban/elements/KanbanSentence.java b/src/org/opensextant/howler/kanban/elements/KanbanSentence.java index e9cb8ea..b0cc47f 100644 --- a/src/org/opensextant/howler/kanban/elements/KanbanSentence.java +++ b/src/org/opensextant/howler/kanban/elements/KanbanSentence.java @@ -116,5 +116,4 @@ public String toString() { + ", userId=" + userId + ", boardId=" + boardId + ", keys=" + keys + "]"; } - } diff --git a/src/org/opensextant/howler/kanban/elements/RawText.java b/src/org/opensextant/howler/kanban/elements/RawText.java index b5b8a4f..91930b0 100644 --- a/src/org/opensextant/howler/kanban/elements/RawText.java +++ b/src/org/opensextant/howler/kanban/elements/RawText.java @@ -97,7 +97,4 @@ public String toString() { + swimlaneId + ", inferred=" + inferred + "]"; } - - - } diff --git a/src/org/opensextant/howler/test/OWL2Text.java b/src/org/opensextant/howler/test/OWL2Text.java index 2311578..85b0f28 100644 --- a/src/org/opensextant/howler/test/OWL2Text.java +++ b/src/org/opensextant/howler/test/OWL2Text.java @@ -47,10 +47,10 @@ public static void main(String[] args) throws IOException { File inputDirsFile = new File(args[0]); File resultsDir = new File(args[1]); - + FileStructure outFormat = FileStructure.DOCUMENT_PER_LINE; - try { + try { outFormat = FileStructure.valueOf(args[2]); } catch (Exception e) { System.err.println("Bad value for format:" + args[2]); @@ -101,7 +101,7 @@ public static void main(String[] args) throws IOException { // create a name from the input ontology file String ontoNameBase = ontoFile.getName().split("\\.")[0]; File outText = new File(byOntoDir, ontoNameBase + ".txt"); - FileUtils.writeStringToFile(outText, backText.toString(outFormat,true), "UTF-8"); + FileUtils.writeStringToFile(outText, backText.toString(outFormat, true), "UTF-8"); } } diff --git a/src/org/opensextant/howler/text/TextDocument.java b/src/org/opensextant/howler/text/TextDocument.java index bae4384..d4bc1d7 100644 --- a/src/org/opensextant/howler/text/TextDocument.java +++ b/src/org/opensextant/howler/text/TextDocument.java @@ -124,9 +124,9 @@ public String toString(FileStructure format, boolean hdrs) { } for (Sentence s : this.sentences) { if (s.getSentenceType().equals(typ)) { - if(format.equals(FileStructure.DOCUMENT_PER_LINE)){ + if (format.equals(FileStructure.DOCUMENT_PER_LINE)) { bldr.append(s.toString().replaceAll("\n", " ")); - }else{ + } else { bldr.append(s.toString()); } bldr.append(delim); diff --git a/src/org/opensextant/howler/text/grammar/HOWL.java b/src/org/opensextant/howler/text/grammar/HOWL.java index 659a05c..3b36d74 100644 --- a/src/org/opensextant/howler/text/grammar/HOWL.java +++ b/src/org/opensextant/howler/text/grammar/HOWL.java @@ -2,14 +2,24 @@ package org.opensextant.howler.text.grammar; -import org.antlr.v4.runtime.atn.*; -import org.antlr.v4.runtime.dfa.DFA; -import org.antlr.v4.runtime.*; -import org.antlr.v4.runtime.misc.*; -import org.antlr.v4.runtime.tree.*; import java.util.List; -import java.util.Iterator; -import java.util.ArrayList; + +import org.antlr.v4.runtime.NoViableAltException; +import org.antlr.v4.runtime.Parser; +import org.antlr.v4.runtime.ParserRuleContext; +import org.antlr.v4.runtime.RecognitionException; +import org.antlr.v4.runtime.RuntimeMetaData; +import org.antlr.v4.runtime.Token; +import org.antlr.v4.runtime.TokenStream; +import org.antlr.v4.runtime.Vocabulary; +import org.antlr.v4.runtime.VocabularyImpl; +import org.antlr.v4.runtime.atn.ATN; +import org.antlr.v4.runtime.atn.ATNDeserializer; +import org.antlr.v4.runtime.atn.ParserATNSimulator; +import org.antlr.v4.runtime.atn.PredictionContextCache; +import org.antlr.v4.runtime.dfa.DFA; +import org.antlr.v4.runtime.tree.ParseTreeVisitor; +import org.antlr.v4.runtime.tree.TerminalNode; @SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"}) public class HOWL extends Parser {