Query SPARQL endpoints and download results as TSV files
Project description
SPARQL TSV
Query SPARQL endpoints and download results as TSV files.
Installation
$ pip install sparql-tsv
$ sparql-tsv --help
usage: sparql-tsv [-h] [--endpoint ENDPOINT] [--user-agent USER_AGENT] [--max-retries MAX_RETRIES] [--page-size PAGE_SIZE] [--header] [--version] [-v] sparql [sparql ...]
Query SPARQL endpoints and download results as TSV files
positional arguments:
sparql SPARQL query files to execute
options:
-h, --help show this help message and exit
--endpoint ENDPOINT SPARQL endpoint URL (default: https://query.wikidata.org/sparql)
--user-agent USER_AGENT
User-Agent string for HTTP requests (default: Python urllib for sparql-tsv)
--max-retries MAX_RETRIES
Maximum number of retries for failed requests (default: 3)
--page-size PAGE_SIZE
Number of results per page (default: auto)
--header Include header row in output
--version show program's version number and exit
-v, --verbose Increase verbosity
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sparql_tsv-0.1.6.tar.gz
(18.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sparql_tsv-0.1.6.tar.gz.
File metadata
- Download URL: sparql_tsv-0.1.6.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/5.15.0-177-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0a1575473330439b5e8857e691c57f3e745bde9cdda673413a326f9e76ff5e4
|
|
| MD5 |
a93db26623ce079f6687a1cdede6db1d
|
|
| BLAKE2b-256 |
9a8cfe586d34ab931e33e56119294aa03dec21a01583fb601330b595f58fccb3
|
File details
Details for the file sparql_tsv-0.1.6-py3-none-any.whl.
File metadata
- Download URL: sparql_tsv-0.1.6-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/5.15.0-177-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a279c90d135a1789645c2bbb7559ae0bc45c6762277ff210611f56e35ba4cbd
|
|
| MD5 |
f28072b3cdf11a0f0a2022f0ce89e00f
|
|
| BLAKE2b-256 |
ef9c379cedbeb4862051fea5df645b7baec2971d847dd374261a6c549cfcd2c4
|