-
Notifications
You must be signed in to change notification settings - Fork 30
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:
- 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