Skip to main content

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.3.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sparql_tsv-0.1.3-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file sparql_tsv-0.1.3.tar.gz.

File metadata

  • Download URL: sparql_tsv-0.1.3.tar.gz
  • Upload date:
  • Size: 18.0 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

Hashes for sparql_tsv-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b72f52d7082fcb2f9fea51e47cd173a29cfac547314d5f592600ea1d4765c8f8
MD5 6a0ca7dca25fa3f3a60acb63b86c1282
BLAKE2b-256 f2e075157550f416cf7c07e087023efe6d9a300a01d1b32e2efa67474700e64b

See more details on using hashes here.

File details

Details for the file sparql_tsv-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: sparql_tsv-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 19.4 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

Hashes for sparql_tsv-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5a204c4e37a3bca1c34802f0472e8cdad86a885b5a39774861af33a2ba990c69
MD5 a78fcb7b29dae700d39a161d0f0a235d
BLAKE2b-256 58de84b3e5feceec42b7722101ef44a851baf7eb4a58ce44ca3fda1e0c023f67

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page