sbol2.toplevel
¶
Module Contents¶
Classes¶
All SBOL classes derived from TopLevel appear as top level nodes |
- class sbol2.toplevel.TopLevel(type_uri=SBOL_TOP_LEVEL, uri=URIRef('example'), version=VERSION_STRING)¶
Bases:
sbol2.identified.Identified
All SBOL classes derived from TopLevel appear as top level nodes in the RDF/XML document tree and SBOL files.
- abstract addToDocument(self, document)¶
- abstract generateTopLevel(self, uri, agent=None, plan=None, usages=None)¶
- Parameters
uri – A URI for the new object, or a displayId if operating in SBOLCompliant mode
- Returns
- abstract initialize(self, uri)¶
- update_uri(self)¶
Recursively generates SBOL compliant ids for an object and all its owned objects, then checks to make sure that these ids are unique. :return: None
- is_top_level(self)¶