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

JSON issues #7

Open
reinvantveer opened this issue Jul 21, 2016 · 1 comment
Open

JSON issues #7

reinvantveer opened this issue Jul 21, 2016 · 1 comment

Comments

@reinvantveer
Copy link

When processing JSON source, a couple of issues arise that hamper transformation to RDF

  • escaped backslashes in strings aren't unescaped
  • line breaks in strings using \n aren't retained
  • leading spaces in strings are droppped

The real trouble is in the processing of JSON arrays

  • JSON arrays using unquoted values (booleans, numerals etc.) always throw errors

See data below, transform using
java -jar RML-Mapper.jar -m multiple-datatypes/rdf/mosselenoesterhabitats.0.geojson/mosselenoesterhabitats.0.geojson.mapping.rml.ttl -o multiple-datatypes/rdf/mosselenoesterhabitats.0.geojson/mosselenoesterhabitats.0.geojson.nt -f ntriples
multiple-datatypes.tar.gz

@reinvantveer
Copy link
Author

The errors can be reproduced by converting any of the unquoted values in the JSON to unquoted arrays, by the way

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