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_ATTACHMENT, uri=URIRef("example"), version=VERSION_STRING, source=''):
super().__init__(type_uri, uri, version)
self._source = URIProperty(self, SBOL_SOURCE, '1', '1', [], source)
self._format = LiteralProperty(self, SBOL_URI, '#format', '0', '1', [])
self._size = LiteralProperty(self, SBOL_URI, '#size', '0', '1', [])
self._hash = LiteralProperty(self, SBOL_URI, '#hash', '0', '1', [])
def _init__(self, rdf_type, uri, at):
super().__init__(rdf_type, uri)
self._at = LiteralProperty(self, SBOL_AT, '1', '1', [], at)
def __init__(self, type_uri=SBOL_ATTACHMENT, uri=URIRef("example"), version=VERSION_STRING, source=''):
super().__init__(type_uri, uri, version)
self._source = URIProperty(self, SBOL_SOURCE, '1', '1', [], source)
self._format = LiteralProperty(self, SBOL_URI, '#format', '0', '1', [])
self._size = LiteralProperty(self, SBOL_URI, '#size', '0', '1', [])
self._hash = LiteralProperty(self, SBOL_URI, '#hash', '0', '1', [])
def __init__(self, uri=URIRef('example'), value=0.0, unit='', version=VERSION_STRING):
super().__init__(SBOL_MEASURE, uri, version)
self._value = LiteralProperty(self, SBOL_VALUE, '1', '1', [], value)
self._unit = URIProperty(self, SBOL_UNIT, '1', '1', [], unit)
self._types = URIProperty(self, SBOL_TYPES, '0', '*', [])
def __init__(self, type_uri=SBOL_ATTACHMENT, uri=URIRef("example"), version=VERSION_STRING, source=''):
super().__init__(type_uri, uri, version)
self._source = URIProperty(self, SBOL_SOURCE, '1', '1', [], source)
self._format = LiteralProperty(self, SBOL_URI, '#format', '0', '1', [])
self._size = LiteralProperty(self, SBOL_URI, '#size', '0', '1', [])
self._hash = LiteralProperty(self, SBOL_URI, '#hash', '0', '1', [])