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.2.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.2.tar.gz.
File metadata
- Download URL: sparql_tsv-0.1.2.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 |
6eb9946c7fd1b537809deb032ab9f7d23366c5e5b72059e6bc80de190a1a1ce7
|
|
| MD5 |
e0266432fa2588c3de9f939285ccf930
|
|
| BLAKE2b-256 |
bc370661297e534a1268867b591b5daddd87b5d2870d6f70e5dda178f223a53c
|
File details
Details for the file sparql_tsv-0.1.2-py3-none-any.whl.
File metadata
- Download URL: sparql_tsv-0.1.2-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 |
4566c63d9785eb47c82b6bed19363098849248dcee425b5686c232f21141f680
|
|
| MD5 |
006fafa2ace5b89c502dada66cbb0734
|
|
| BLAKE2b-256 |
412fa60dff72477ad6c377129855534d2dfad2265a4cc498a9353296297cb948
|