nichtich / wikidata-taxonomy

command-line tool to extract taxonomies from Wikidata
https://www.npmjs.org/package/wikidata-taxonomy
MIT License
124 stars 11 forks source link

CSV output should be quoted #38

Closed pmackay closed 6 years ago

pmackay commented 6 years ago

I was pulling a CSV output of the product taxonomy tree, which is quite large. It failed to parse as CSV because labels that include a quote character are not quoted themselves, so the first item to fail was:

-----,Q6109076,JTL-E .500 S&W Magnum 12",1,0,

Would it make sense for all labels to be quoted by default?

nichtich commented 6 years ago

I left it unquoted because so it is easier to process (just split at ,) but you are right. I'll change this and add TSV as alternative.

nichtich commented 6 years ago

Fixed in version 0.6.4