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.7.tar.gz (18.2 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.7-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sparql_tsv-0.1.7.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

Hashes for sparql_tsv-0.1.7.tar.gz
Algorithm Hash digest
SHA256 c533ac50721910fd031794682cb6fa9483e6adcc246d40a5e1f1779f2a7fd4d4
MD5 0a2da9fd7f2bd74ec0c207fbbd48ab2c
BLAKE2b-256 1577c205b92a3234b1fdb2c55ef55a50f4c2d327d8e1fdac0c4ec4468948dcde

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sparql_tsv-0.1.7-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

Hashes for sparql_tsv-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6e74344b807e3dd4f42e4930114b8d052a9dc03e79be0cac7c1b4dd73c64eac2
MD5 57da8917d18930f557f62c5b9c801c86
BLAKE2b-256 f9ce544aae39571f69f93fcdfaf8120ee06dce3bf8deda1137ca39b20b28f981

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