Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, type_uri=SBOL_IDENTIFIED, uri=URIRef('example'), repeat='http://sbols.org/v2#on', version=VERSION_STRING):
super().__init__(type_uri, uri, version)
self.variable = ReferencedObject(self, SBOL_VARIABLE, SBOL_COMPONENT, '0', '1', [])
self._repeat = URIProperty(self, SBOL_OPERATOR, '1', '1', [], repeat)
self.variants = ReferencedObject(self, SBOL_VARIANTS, SBOL_COMPONENT_DEFINITION, '0', '*', [])
self.variantCollections = ReferencedObject(self, SBOL_VARIANT_COLLECTIONS, SBOL_COLLECTION, '0', '*', [])
self.variantDerivations = ReferencedObject(self, SBOL_VARIANT_DERIVATIONS, SBOL_COMBINATORIAL_DERIVATION, '0', '*', [])
def __init__(self, type_uri=SBOL_LOCATION, uri=URIRef('example'), orientation=SBOL_ORIENTATION_INLINE):
super().__init__(type_uri, uri)
self._orientation = URIProperty(self, SBOL_ORIENTATION, '1', '1', [], orientation)
self.sequence = ReferencedObject(self, SBOL_SEQUENCE_PROPERTY, SBOL_SEQUENCE, '0', '1', [])
def __init__(self, type_uri=SBOL_PARTICIPATION, uri=URIRef('example'), participant='', version=VERSION_STRING):
super().__init__(type_uri, uri, version)
self._roles = URIProperty(self, SBOL_ROLES, '0', '*', [])
self.participant = ReferencedObject(self, SBOL_PARTICIPANT, SBOL_FUNCTIONAL_COMPONENT, '1', '1', [], participant)
self.measurements = OwnedObject(self, SBOL_MEASUREMENTS, '0', '*', [])
def __init__(self, type_uri=SBOL_MAPS_TO, uri=URIRef('example'), local='', remote='', refinement=SBOL_REFINEMENT_VERIFY_IDENTICAL, version=VERSION_STRING):
super().__init__(type_uri, uri, version)
self.local = ReferencedObject(self, SBOL_LOCAL, SBOL_COMPONENT, '1', '1', [], local)
self.remote = ReferencedObject(self, SBOL_REMOTE, SBOL_COMPONENT, '1', '1', [], remote)
self._refinement = URIProperty(self, SBOL_REFINEMENT, '1', '1', [], refinement)
def __init__(self, type_uri=SBOL_COMBINATORIAL_DERIVATION, uri=URIRef("example"), strategy='http://sbols.org/v2#enumerate', version=VERSION_STRING):
super().__init__(type_uri, uri, version)
self._strategy = URIProperty(self, SBOL_STRATEGY, '1', '1', []) # TODO in original source, it doesn't look like strategy is used
self.masterTemplate = ReferencedObject(self, SBOL_TEMPLATE, SBOL_COMBINATORIAL_DERIVATION, '0', '1', [])
self.variableComponents = OwnedObject(self, SBOL_VARIABLE_COMPONENTS, '0', '*', [])
def __init__(self, type_uri=SBOL_SEQUENCE_CONSTRAINT, uri=URIRef('example'), subject='', object='', restriction=SBOL_RESTRICTION_PRECEDES, version=VERSION_STRING):
super().__init__(type_uri, uri, version)
self.subject = ReferencedObject(self, SBOL_SUBJECT, SBOL_COMPONENT, '1', '1', [], subject)
self.object = ReferencedObject(self, SBOL_OBJECT, SBOL_COMPONENT, '1', '1', [], object)
self._restriction = URIProperty(self, SBOL_RESTRICTION, '1', '1', [], restriction)
def __init__(self, rdf_type, uri, definition, access, version):
super().__init__(rdf_type, uri, version)
self.definition = ReferencedObject(self, SBOL_DEFINITION, SBOL_COMPONENT_DEFINITION, '1', '1', [], definition)
self._access = URIProperty(self, SBOL_ACCESS, '0', '1', [], access)
self.mapsTos = OwnedObject(self, SBOL_MAPS_TOS, '0', '*', [])
self.measurements = OwnedObject(self, SBOL_MEASUREMENTS, '0', '*', [])
def __init__(self, type_uri=SBOL_SEQUENCE_CONSTRAINT, uri=URIRef('example'), subject='', object='', restriction=SBOL_RESTRICTION_PRECEDES, version=VERSION_STRING):
super().__init__(type_uri, uri, version)
self.subject = ReferencedObject(self, SBOL_SUBJECT, SBOL_COMPONENT, '1', '1', [], subject)
self.object = ReferencedObject(self, SBOL_OBJECT, SBOL_COMPONENT, '1', '1', [], object)
self._restriction = URIProperty(self, SBOL_RESTRICTION, '1', '1', [], restriction)
def __init__(self, type_uri=SBOL_IDENTIFIED, uri=URIRef('example'), repeat='http://sbols.org/v2#on', version=VERSION_STRING):
super().__init__(type_uri, uri, version)
self.variable = ReferencedObject(self, SBOL_VARIABLE, SBOL_COMPONENT, '0', '1', [])
self._repeat = URIProperty(self, SBOL_OPERATOR, '1', '1', [], repeat)
self.variants = ReferencedObject(self, SBOL_VARIANTS, SBOL_COMPONENT_DEFINITION, '0', '*', [])
self.variantCollections = ReferencedObject(self, SBOL_VARIANT_COLLECTIONS, SBOL_COLLECTION, '0', '*', [])
self.variantDerivations = ReferencedObject(self, SBOL_VARIANT_DERIVATIONS, SBOL_COMBINATORIAL_DERIVATION, '0', '*', [])
def __init__(self, type_uri=SBOL_IDENTIFIED, uri=URIRef('example'), repeat='http://sbols.org/v2#on', version=VERSION_STRING):
super().__init__(type_uri, uri, version)
self.variable = ReferencedObject(self, SBOL_VARIABLE, SBOL_COMPONENT, '0', '1', [])
self._repeat = URIProperty(self, SBOL_OPERATOR, '1', '1', [], repeat)
self.variants = ReferencedObject(self, SBOL_VARIANTS, SBOL_COMPONENT_DEFINITION, '0', '*', [])
self.variantCollections = ReferencedObject(self, SBOL_VARIANT_COLLECTIONS, SBOL_COLLECTION, '0', '*', [])
self.variantDerivations = ReferencedObject(self, SBOL_VARIANT_DERIVATIONS, SBOL_COMBINATORIAL_DERIVATION, '0', '*', [])