Skip to content

weblyzard/linked-data-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Upload Turtle

This script uploads .ttl files (uncompressed or compressed using bz2, gzip or xz) to an rdf4j repository.

Dependencies

  • Python 3.x
  • httplib2 (apt-get install python3-httplib2)

Usage

usage: upload_turtle.py [-h] [--encoding ENCODING]
                        [--repository-url REPOSITORY_URL]
                        [--chunksize CHUNKSIZE] [--skip SKIP]
                        fname [fname ...]

positional arguments:
  fname                 File(s) to upload.

optional arguments:
  -h, --help            show this help message and exit
  --encoding ENCODING   Encoding used in the turtle files (default: utf-8).
  --repository-url REPOSITORY_URL
                        URL of the SPARQL repository to use.
  --chunksize CHUNKSIZE
                        Number of lines to upload at ones (default: 25000).
  --skip SKIP           Number of lines to skip prior to the next upload
                        (default: 0).

Examples

   ./upload_turtle.py ./data/wikidata-*.gz \
           --repository-url http://localhost:8080/rdf4j-server/repositories/wikidata

About

Scripts for uploading and manipulating linked data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages