Skip to content

Script: pvload.sh

Tim L edited this page Feb 4, 2014 · 43 revisions

What is first

What we will cover

This page describes how to use pvload.sh to capture provenance of loading SPARQL triple store named graphs.

Let's get to it!

Usage

$ pvload.sh --help
usage: pvload.sh [--help] [-n] url [-ng named_graph]
  -n  : dry run - do not download or load into named graph.
  url : the URL to retrieve and load into a named graph.
  -ng : the named graph to place 'url'. (if not provided, -ng == 'url').

  (Setting envvar CSV2RDF4LOD_CONVERT_DEBUG_LEVEL=finest will leave temporary files after invocation.)

Environment variables that matter

Loading a URL and the provenance of the load into the same named graph

Let's load one triple into the graph named http://example.org/pvload-test:

pvload.sh http://purl.org/twc/eg/sames -ng http://example.org/pvload-test

When this is done on opendap.tw.rpi.edu, a summary of the named graph can be found at http://opendap.tw.rpi.edu/graph/http/example.org/pvload-test. Because the graph that we loaded only had 1 triple, and the named graph ends up with 128, pvload.sh added 127 triples of provenance.

What is next

Clone this wiki locally