Hi Felipe,
It’s not just you. I just tried loading a tab-delimited text file and observe the same problem. I can load a comma-separated file without issue. Just make sure it’s really delimited with commas (and not semicolons as, for example, European Excel likes to force you into using) and that values that might contain internal commas are quoted with ASCII double quote characters.
It looks like the tab separator support got broken somewhere along the line, possibly during a switch to more modern CSV parsing library. If you want to apply a local fix to the Vitro Java code (Vitro/api/src/main/java/…), it works for me after I edit the file edu.cornell.mannlib.vitro.webapp.utils.Csv2Rdf.java to change lines 69-71 to
CSVParser cReader = new CSVParser(new InputStreamReader(fis),
CSVFormat.DEFAULT.withDelimiter(separatorChar)
.withQuote(quoteChar));
Instead of
CSVParser cReader = new CSVParser(new InputStreamReader(fis),
CSVFormat.DEFAULT.withRecordSeparator(separatorChar)
.withQuote(quoteChar));
The withRecordSeparator() call should be changed to withDelimiter().
I’ll open a JIRA issue.
Brian
De la: vivo...@googlegroups.com <vivo...@googlegroups.com>
În numele Felipe Alejandro Bergallo Corral
Trimis: luni, 20 aprilie 2020 19:38
Către: VIVO Tech <vivo...@googlegroups.com>
Subiect: [vivo-tech] TSV to RDF issue
--
You received this message because you are subscribed to the Google Groups "VIVO Tech" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
vivo-tech+...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/vivo-tech/40c608e9-6710-4f83-857b-0981037a0819%40googlegroups.com.