Пример #1
0
def run(vistrail_xml, version, log_xml, registry_xml, output_fname):
    from vistrails.db.persistence import DAOList

    vistrail = vistrails.db.services.io.open_vistrail_from_xml(vistrail_xml)
    log = vistrails.db.services.io.open_log_from_xml(log_xml)
    registry = vistrails.db.services.io.open_registry_from_xml(registry_xml)
    opm_graph = create_opm_from_vistrail(vistrail, int(version), log, registry)
    dao_list = DAOList()
    dao_list.save_to_xml(opm_graph, output_fname, {})
Пример #2
0
def run(vistrail_xml, version, log_xml, registry_xml, output_fname):
    from vistrails.db.persistence import DAOList

    vistrail = vistrails.db.services.io.open_vistrail_from_xml(vistrail_xml)
    log = vistrails.db.services.io.open_log_from_xml(log_xml)
    registry = vistrails.db.services.io.open_registry_from_xml(registry_xml)
    opm_graph = create_opm_from_vistrail(vistrail, int(version), log, registry)
    dao_list = DAOList()
    dao_list.save_to_xml(opm_graph, output_fname, {})
Пример #3
0
def run(vistrail_xml, version, log_xml, output_fname):
    from vistrails.db.persistence import DAOList
    from vistrails.core.vistrail.vistrail import Vistrail
    import vistrails.db.services.io
    
    vistrail = vistrails.db.services.io.open_vistrail_from_xml(vistrail_xml)
    log = vistrails.db.services.io.open_log_from_xml(log_xml, was_appended=True)
    version_id = vistrail.db_get_actionAnnotation_by_key((Vistrail.TAG_ANNOTATION, version)).db_action_id
    prov_document = create_prov_from_vistrail(vistrail, int(version_id), log)
    dao_list = DAOList()
    tags = {'xmlns:prov': 'http://www.w3.org/ns/prov#',
            'xmlns:dcterms': 'http://purl.org/dc/terms/',
            'xmlns:vt': 'http://www.vistrails.org/registry.xsd',
            }
    dao_list.save_to_xml(prov_document, output_fname, tags)