Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not discard embedded metadata stored in comments as per W3C recommendation #1038

Open
pbattino opened this issue Feb 5, 2024 · 0 comments

Comments

@pbattino
Copy link

pbattino commented Feb 5, 2024

W3C recommendation for supporting embedded metadata is to use comment lines. In the example below the 3nd and 4th line:

# publisher City of Palo Alto
# updated 12/31/2010
#name GID on_street species trim_cycle  inventory_date
#datatype string  string  string  string  date:M/D/YYYY
  GID On Street Species Trim Cycle  Inventory Date
  1 ADDISON AV  Celtis australis  Large Tree Routine Prune  10/18/2010
  2 EMERSON ST  Liquidambar styraciflua Large Tree Routine Prune  6/2/2010

I understand parsing and reusing metadata in these comment lines may be seen as out of the scope of PapaParse.
But if the parser could at least not discard these lines completely (when the option 'comments: "#"' is used) and simply pass them to the meta object, a developer could further reprocess them if needed.

see https://www.w3.org/TR/tabular-data-model/#embedded-metadata

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant