本文整理汇总了Python中interface.Interface.process_bundle方法的典型用法代码示例。如果您正苦于以下问题:Python Interface.process_bundle方法的具体用法?Python Interface.process_bundle怎么用?Python Interface.process_bundle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类interface.Interface
的用法示例。
在下文中一共展示了Interface.process_bundle方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Config
# 需要导入模块: from interface import Interface [as 别名]
# 或者: from interface.Interface import process_bundle [as 别名]
# configure for rexster database
config = Config('http://50.112.248.236:8182/graphs/xcede-dm')
# initialize the interface and establish proxy classes
interface = Interface(config)
# parse an example provenance.json file
bundle = interface.parse_prov('workflow_provenance.json')
# bundle has full access to the provpy api
records = bundle.get_records()
entity = records[0]
# processed the parsed bundle stored at <interface._bundle>
# maps provpy to provbulb.model and pushes data to rexster
response = interface.process_bundle()
# interface can be used to query for model objects
for i in interface.entities.get_all(): print i
# request for the registered keys for a model
print interface.entities.get_property_keys()
# and query a model object by their properties
identifier='http://nipy.org/nipype/terms/0.6/ag1'
for i in interface.agents.index.lookup(identifier=identifier):
print i