wdsparqlmagic
IPython magic to run Wikidata's Sparql queries on the notebooks
Sample Notebook
You can run the sample notebook on binder
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.
Developing
Publishing
Just add a new tag or release with git tag vX.Y.Z -m "<Comment>"; git push --tags
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 sample notebook (use wikipedia's queries)
- Write the README.md
- Button to "run with binder"
- Explain all the magics:
- wdsparql
- wdseturl
- wdreseturl
- Testing
- Unit testing for the functions
- Visual testing for the sample notebook
- Make test, build and upload automatically using github actions
- Check linting tools
- Use matrix to check with multiple python versions
- For displaying, stop using dataframes and use a custom class
- Make links clickable
- Make items appear as
<a href="<link">Q1984194810</a> - Display images
- Display map
- Adding more queries than the simple ones to the notebook
Optional:
- Making a new kernel instead of an extension (select cell language: sparql)
Metadata
Release files for wdsparql 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wdsparql-0.0.3.tar.gz | 12.1 kB | Without provenance | Details for wdsparql-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wdsparql-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for wdsparql-0.0.3-py3-none-any.whl |
Total release size: 17.1 kB
Release files / wdsparql-0.0.3.tar.gz
| Download URL | wdsparql-0.0.3.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dbb10f5a0caba153633efd53a73d065a32d68f667a2f3b517ff5e5495846201d
|
|
BLAKE2b-256 checksum How to use checksums |
01819d44fc2793c2f596b0930eea3df83c3274c4dc5c34bbf78bc65d44d3c0bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / wdsparql-0.0.3-py3-none-any.whl
| Download URL | wdsparql-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
55e2f427461db87e87dd739c978b009e288f75c4ca554f5cd80a035f31380518
|
|
BLAKE2b-256 checksum How to use checksums |
ad037682ccf6cab87ef8ea39f89abf39855e39db86ab08bf2bf8aa73f3b53bff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for wdsparql 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.