Skip to content

Converting between different serializations

Camille Maumet edited this page Jul 16, 2014 · 4 revisions

As we use PROV-N as the base syntax for modeling NIDM 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

Command line

Web 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