def collections(): g = ProvBundle() ex = Namespace('ex', 'http://example.org/') c1 = g.collection(ex['c1']) e1 = g.entity('ex:e1') g.hadMember(c1, e1) return g
def collections(): g = ProvBundle() ex = Namespace("ex", "http://example.org/") c1 = g.collection(ex["c1"]) e1 = g.entity("ex:e1") g.hadMember(c1, e1) return g
def export(trial: Trial, document: provo.ProvBundle): print_msg(" Exporting module dependencies") collection = document.collection("moduleDependencies") for module in trial.modules: # type: Module _create_module_dep(module, document) for module in trial.modules: # type: Module collection.hadMember("module{}".format(module.id))
def export(trial: Trial, document: provo.ProvBundle): print_msg(" Exporting environment conditions") collection = document.collection("environmentAttributes") for env_attr in trial.environment_attrs: # type: EnvironmentAttr _create_env_attr(document, env_attr) for env_attr in trial.environment_attrs: # type: EnvironmentAttr collection.hadMember("environmentAttribute{}".format(env_attr.id))