scribe-org / Scribe-Data

Wikidata, Wiktionary and Wikipedia language data extraction
GNU General Public License v3.0
23 stars 25 forks source link

Convert `update_data.py` to a function and call it from `cli/query.py` #159

Closed andrewtavis closed 2 months ago

andrewtavis commented 3 months ago

Terms

Description

This issue would be to convert over the functionality of update_data.py into a function that can then be called in the CLI query process.

Generally the steps for this would be:

At the end of this issue:

# Rather than:
python src/scribe_data/wikidata/update_data.py
python src/scribe_data/wikidata/update_data.py ["German"] ["nouns"]
# We'd have:
scribe-data q -all
scribe-data q -lang German -dt nouns

Contribution

@mhmohona will work on this as a part of GSoC 2024 ☀️ Please write in here so we can assign, and let us know if there are any questions!

mhmohona commented 3 months ago

Will work on this issue.

andrewtavis commented 2 months ago

Closed by #161 🙌 Amazing work here, @mhmohona! 😊😊