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.0.tar.gz
(17.9 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.0.tar.gz.
File metadata
- Download URL: sparql_tsv-0.1.0.tar.gz
- Upload date:
- Size: 17.9 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 |
2bcbfcef7caec2da0870b32a0539efb525d95a927218e25d488c9654adfc38f3
|
|
| MD5 |
384ae777e65dd044bf7dd267b1f9bbf9
|
|
| BLAKE2b-256 |
50f3a9172c647e39acca98a7d6fb6f5a0e29f10483f97115badb511f4eb7a92a
|
File details
Details for the file sparql_tsv-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sparql_tsv-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.3 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 |
0926bff7c043c89e24af5690c1774734cf5d1e71f6a95452305417ee35cb75f9
|
|
| MD5 |
75dca026b68af121fb334f96efb88ec3
|
|
| BLAKE2b-256 |
2f7cc06d08ae781a2a96232c6047e991ef6d00990d234a81924fa065d40bb566
|