A query flag to get entities on jsonl format
Not plannedThis could greatly simplify making scripts that support streaming and/or parallelization.
https://jsonlines.org/
E.g.
GET /datasets/{dataset_id}/entities
https://docs.sesam.io/hub/api.html#get--datasets-dataset_id-entities
Would you formated json list of entities like today, but
GET /datasets/{dataset_id}/entities?format=jsonl
Would give you each entity on separate lines with no formatting in line.
-
Official comment
We think that this feature can easily be provided outside of the service API. Here's an example of how to produce JSONL out from the service API with the help of jq:
curl https://…/api/dataset/X/entities | jq -cn --stream 'fromstream(1|truncate_stream(inputs))'
Comment actions
Please sign in to leave a comment.
Comments
1 comment