Bases: prov.serializers.Serializer
PROV-JSON serializer for ProvDocument
Deserialize from the PROV JSON representation to a ProvDocument instance.
Parameters: | stream – Input data. |
---|
Serializes a ProvDocument instance to PROV-JSON.
Parameters: | stream – Where to save the output. |
---|
PROV-RDF serializers for ProvDocument
Bases: prov.serializers.Serializer
PROV-O serializer for ProvDocument
Deserialize from the Prov-O representation to a ProvDocument instance.
Parameters: | stream – Input data. |
---|
Serializes a ProvDocument instance to Prov-O.
Parameters: | stream – Where to save the output. |
---|
Generate all the full paths in a tree, as a dict.
>>> from nipype.pipeline.engine.utils import walk
>>> iterables = [('a', lambda: [1, 2]), ('b', lambda: [3, 4])]
>>> [val['a'] for val in walk(iterables)]
[1, 1, 2, 2]
>>> [val['b'] for val in walk(iterables)]
[3, 4, 3, 4]
Bases: prov.serializers.Serializer
PROV-XML serializer for ProvDocument
Deserialize from PROV-XML representation to a ProvDocument instance.
Parameters: | stream – Input data. |
---|
Deserialize an etree element containing a PROV document or a bundle and write it to the provided internal object.
Parameters: |
|
---|
Serializes a ProvDocument instance to PROV-XML.
Parameters: |
|
---|
Serializes a bundle or document to PROV XML.
Parameters: |
|
---|