Run Wikidata Sparql queries directly on your notebook
Project description
wdsparqlmagic
IPython magic to run Wikidata's Sparql queries on the notebooks
Features
Magics
%%wdsparql
: Runs the cell as a sparql query on your notebook%wdseturl <url>
: Sets the url to run the queries against%wdreseturl
: Resets the url
Other features
- After running a wdsparql query, a pandas dataframe will be available as
_dfwd
. You can run all common pandas operations against it.
TODO:
- What happens if an error occurs?
- Raising custom exception
- Expose the last query result to the namespace as a pandas dataframe
- Create setup.py
- Upload to pypi
- Make build and upload automatically using github actions
- For displaying, stop using dataframes and use a custom class
- Make links clickable
- Display images
- Display map
- Make sample notebook (use wikipedia's queries)
- Testing
- Unit testing for the functions
- Visual testing for the sample notebook
- Write the README.md
- Button to "run with binder"
- Explain all the magics:
- wdsparql
- wdseturl
- wdreseturl
- Adding more queries than the simple ones to the notebook
- Making a new kernel instead of an extension (select cell language: sparql)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wdsparql-0.0.1.post4.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for wdsparql-0.0.1.post4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39b6ba6b2829f4ab56fe8ddde8f8681c69ca6f74bd8519a13cfd42dcc72faab9 |
|
MD5 | 1fc7d5b4a29c7f8f679f144444f2d329 |
|
BLAKE2b-256 | 6df1a5e0d0abfe1fd3564ef662c39dd2cbefb47dbd70e03e77b747317fa9be38 |