Skip to content

Converting between different serializations

Nolan Nichols edited this page Apr 7, 2014 · 4 revisions

As we use PROV-N as the base syntax for modeling NI-DM documents, one of the first things you may be interested in doing is converting between the different document types. This can be accomplished using one of several approaches:

Web App Approach

-ProvTranslator

Command line

We Service approach

  • using cURL (note: the file path must have the @ symbol as a prefix)
curl -L --data-binary @<path/to/file> -H "Content-type: text/provenance-notation" -H "Accept: text/turtle" https://provenance.ecs.soton.ac.uk/validator/provapi/documents/
  • using the awesome httpie utility
http POST https://provenance.ecs.soton.ac.uk/validator/provapi/documents/ Content-Type:text/provenance-notation Accept:text/turtle --follow < <path/to/file>

prov Python library

Clone this wiki locally