-
Notifications
You must be signed in to change notification settings - Fork 30
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:
- provconvert java utility
- 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>
- Can only read prov-json
- Can construct prov-n, prov-json, and limited set of RDF (currently)
- https://github.com/trungdong/prov