sbol2.identified

Module Contents

Classes

Identified

Functions

parseNamespace(uri)

Utility function for parsing the namespace from an RDF type -- note, this

replace_namespace(old_uri, target_namespace, rdf_type)

Utility function for mapping an SBOL object's identity into a new namespace. The

class sbol2.identified.Identified(type_uri=SBOL_IDENTIFIED, uri=URIRef('example'), version=VERSION_STRING)

Bases: sbol2.object.SBOLObject

version :Union[str, sbol2.versionproperty.VersionProperty]
abstract generate(self)
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

copy(self, target_doc=None, target_namespace=None, version=None)
sbol2.identified.parseNamespace(uri)

Utility function for parsing the namespace from an RDF type – note, this will work on some SBOL object URIs, but not universally. It is primarily for use with RDF types.

sbol2.identified.replace_namespace(old_uri, target_namespace, rdf_type)

Utility function for mapping an SBOL object’s identity into a new namespace. The rdf_type is used to map to and from sbol-typed namespaces.