obdasystems / eddy

A graphical editor for the specification and visualization of Graphol ontologies
GNU General Public License v3.0
62 stars 7 forks source link

[BUG]: Export ontology as CSV with \n in rdfs:label #258

Closed giacomoronconiobda closed 1 year ago

giacomoronconiobda commented 1 year ago

Describe the bug

Trying to export an ontology as a CSV file that has some \r or \n characters in the annotations (rdfs:label) breaks the validity of the generated CSV.

Reproduction Steps

Export the following ontology:

https://github.com/obdasystems/OBDA-Specifications/blob/master/Books/3.0.0/books3.graphol

Expected Result

One line per entity CSV

Actual Result

No response

Affected Versions

3.4

Installation

None

Operating System

Windows

Operating System Version

Win

Operating System Architecture

x86_64

Log

No response

giacomoronconiobda commented 1 year ago

Per eventuali necessità: mi sono accorto che viene aggiunto il carriage return quando effettivamente la tupla è finita quindi sono riuscito a "fissare" il file esportato in questo con la seguente regex: :%s/[^\r]\n/\1 /g