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

Uploaded Python 3

File details

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

File metadata

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

Hashes for sparql_tsv-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8019e0ad856122c25f0f4c68ddb9dea9c86d3016f8d7996510d2cd38d696ad48
MD5 f6243a199f09a3a95b32e055181777d1
BLAKE2b-256 2d462401ac6aa5e556b817a3efa332a1a165e2e6edf0ffad3af392b4a8b7db96

See more details on using hashes here.

File details

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

File metadata

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

Hashes for sparql_tsv-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 39b3f74f83176d7f2566c60002d59891d521ba6abd738e7909b5c23c50143ce4
MD5 8d319ac04533825385be7abd2883bcd7
BLAKE2b-256 28d6312c39918adf3ec7df8b79d6d332c079092636014c94db2131c310c1b93a

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