-
Notifications
You must be signed in to change notification settings - Fork 130
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
CLI: add command to upload data from a JSON or CSV file #167
Comments
@Mec-iS Is it okay to add However it also has a number of modules for processing data that we don't need, (keeping in mind that hydrus was meant to be "lightweight") |
Always use standard library tools. Standard library has a |
When you say data, you mean instances of objects that the API serves right? I think it could be handy to have some text file having some preloaded data that can load instances right away. But we would need to define the format of such a file. |
Yeah with data I mean instances/objects that are actually served by the interface (the one we store using the PUT method on the
Using standard formats is always the way to go. Probably would be better to support, beside JSON, also the different serialization formats for triples for backward compatibility with older Knowledge Bases. |
this is something needed @sameshl , also ping @vedangj044 as I think he is working on it |
@sameshl #168 looks good but it is specific to a particular case where we have the data for a particular resource that too if the data doesn't contain any abstract property. Also, a broader solution should focus on all types of files even Rational Databases.
|
Why are batch endpoints useful? How can we add them to the existing REST API? |
@Mec-iS Before working on this issue should we set up a Database from db_parser import get_db_url
DB_URL = get_db_url() |
Everything about the code is in the code. For now we only use file database as SQLite. Ask your colleagues in Slack for generic directions. |
Is anyone working on this, at the moment? |
I want to work on this issue! |
I'm submitting a
Current Behaviour:
To bulk-load data in the server the only possibility is to send PUT requests to the endpoint
Expected Behaviour:
Data can be loaded by running a command, pointing to a local text file.
The text was updated successfully, but these errors were encountered: