How to use the sbol3.property.LiteralProperty function in sbol3

To help you get started, we’ve selected a few sbol3 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SynBioDex / pySBOL / sbol3 / attachment.py View on Github external
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', [])
github SynBioDex / pySBOL / sbol3 / location.py View on Github external
def _init__(self, rdf_type, uri, at):
        super().__init__(rdf_type, uri)
        self._at = LiteralProperty(self, SBOL_AT, '1', '1', [], at)
github SynBioDex / pySBOL / sbol3 / attachment.py View on Github external
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', [])
github SynBioDex / pySBOL / sbol3 / measurement.py View on Github external
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', '*', [])
github SynBioDex / pySBOL / sbol3 / attachment.py View on Github external
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', [])