Skip to content

Creating Prov output

Hassaan edited this page Sep 30, 2015 · 10 revisions

The Prov storage allows outputting the provenance data in the following two formats:

  1. PROV-N [http://www.w3.org/TR/prov-n]

  2. PROV-O [http://www.w3.org/TR/prov-o]

Following is the command to add Prov storage:

add storage Prov outFile=<filepath.extension> ns1prefix=rdfsFile1 ns2prefix=rdfsFile2 ...

outFile key must be given to specify the output file. The extension of the output file is used to determine in which format to output the data. Use .provn extension for PROV-N format and .ttl extension for PROV-O format.

The remaining arguments are optional. They are used to specify the namespace prefixes to be used and the rdf schema files corresponding to each of the namespace prefix given. In each key value pair, key is the namepsace prefix and value is the filesystem path or url to a rdf schema file. Each rdf schema file specified is read and RDFS properties defined in it are extracted. These extracted properties are the annotations used for the vertices and edges. For example, if you are using Audit reporter then you would need to pass as argument to Prov storage the rdfs schema file of Audit reporter. Note: The namespace prefixes prov and data are reserved and cannot be used.

The storage can simply be removed using the command:

remove storage Prov
Clone this wiki locally