from sbol import *
namespace = "http://my_namespace.org"
setHomespace(namespace)
doc = Document()
generic_parts = Document('parts.xml')
generic_parts.copy("http://examples.org", doc)
partshop = PartShop('https://synbiohub.org/public/igem')
records = partshop.search('interlab')
medium_device_uri = records[0].identity
Steps to reproduce:
Run the following snippet (the
parts.xmlreferenced below is here):Run the following line
Result:
Tested on python 3.6 on Arch Linux, in ipython and regular python shell.