Skip to content

Commit

Permalink
Formatting only
Browse files Browse the repository at this point in the history
  • Loading branch information
dlutz2 committed Jul 1, 2018
1 parent 2d04c15 commit fe9ea6c
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/org/opensextant/howler/abstraction/Vocabulary.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,4 @@ public String toString() {
+ ", userId=" + userId + ", boardId=" + boardId + ", keys=" + keys + "]";
}


}
3 changes: 0 additions & 3 deletions src/org/opensextant/howler/kanban/elements/RawText.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,4 @@ public String toString() {
+ swimlaneId + ", inferred=" + inferred + "]";
}




}
6 changes: 3 additions & 3 deletions src/org/opensextant/howler/test/OWL2Text.java
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down Expand Up @@ -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");
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/org/opensextant/howler/text/TextDocument.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
24 changes: 17 additions & 7 deletions src/org/opensextant/howler/text/grammar/HOWL.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fe9ea6c

Please sign in to comment.