Skip to content

Commit

Permalink
Merge pull request #59 from herminiogg/enhancement-#55
Browse files Browse the repository at this point in the history
Added support for TSV files. Closes #55
  • Loading branch information
herminiogg authored Sep 16, 2020
2 parents 3408643 + 94b6a35 commit c6fc9e8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,8 @@ class RDFGeneratorVisitor(dataset: Dataset, varTable: mutable.HashMap[Variable,
val colon = fileContent.count(_.equals(':'))
val at = fileContent.count(_.equals('@'))
val sharp = fileContent.count(_.equals('#'))
val map = Map(',' -> comma, ';' -> semicolon, '.' -> dot, ':' -> colon, '@' -> at, '#' -> sharp)
val tab = fileContent.count(_.equals('\t'))
val map = Map(',' -> comma, ';' -> semicolon, '.' -> dot, ':' -> colon, '@' -> at, '#' -> sharp, '\t' -> tab)
map.foldLeft(',')((greater, count) => if(map(greater) < count._2) count._1 else greater)
}

Expand Down

0 comments on commit c6fc9e8

Please sign in to comment.