Metadata-Version: 2.1
Name: wdsparql
Version: 0.0.1.post3
Summary: Run Wikidata Sparql queries directly on your notebook
Home-page: https://github.com/daviddavo/wdsparqlmagic
Author: David Davó
Author-email: david@ddavo.me
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/daviddavo/wdsparqlmagic/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: IPython
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

![PyPI - License](https://img.shields.io/pypi/l/wdsparql?style=for-the-badge)
![PyPI](https://img.shields.io/pypi/v/wdsparql?style=for-the-badge)
![PyPI - Status](https://img.shields.io/pypi/status/wdsparql?style=for-the-badge)

# 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:
- [x] What happens if an error occurs?
  - Raising custom exception
- [x] Expose the last query result to the namespace as a pandas dataframe
- [ ] Create setup.py
- [ ] Upload to pypi
- [ ] For displaying, stop using dataframes and use a custom class
  - [ ] Make links clickable
  - [ ] Display images
  - [ ] Display map
- [x] 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"
  - [x] Explain all the magics:
    - [x] wdsparql
    - [x] wdseturl
    - [x] wdreseturl
- [ ] Adding more queries than the simple ones to the notebook
- [ ] Making a new kernel instead of an extension (select cell language: sparql)

