How do I import a json dataset added manually? #4096
Replies: 2 comments 1 reply
-
@guille-amarilla to clarify, your dataset resource (distribution) is a json file? or you are trying to create a dataset using the API and json formatted metadata? If the data itself is json, then DKAN would just provide a download link to it. Only csv data resources can be imported to the datastore and made available via the API. |
Beta Was this translation helpful? Give feedback.
-
@guille-amarilla in that case checkout this page in the docs about creating a dataset via the metastore API: https://dkan.readthedocs.io/en/latest/user-guide/guide_dataset.html#post--api-1-metastore-schemas-dataset-items This will create the dataset and generate a queue to localize the remote file, then another queue is generated to run the import so you can run those queues manually with drush, or just run cron twice. Then you should see the data preview table on your dataset page. If you do not see it, check /admin/dkan/datastore/status to see if the import is reporting an error. |
Beta Was this translation helpful? Give feedback.
-
Hi, how can I import a json dataset added manually? I follow the documentation for "How to add a Dataset" through GUI. In the documentation says to run drush cron to start the import. It worked with csv dataset added, but somehow for json does not work. Can you help me with it? Thanks
Beta Was this translation helpful? Give feedback.
All reactions