sbol3.model =========== .. py:module:: sbol3.model Classes ------- .. autoapisummary:: sbol3.model.Model Functions --------- .. autoapisummary:: sbol3.model.build_model Module Contents --------------- .. py:class:: Model(identity: str, source: str, language: str, framework: str, *, namespace: str = None, attachments: List[str] = None, name: str = None, description: str = None, derived_from: List[str] = None, generated_by: List[str] = None, measures: List[SBOLObject] = None, type_uri: str = SBOL_MODEL) Bases: :py:obj:`TopLevel` The purpose of the Model class is to serve as a placeholder for an external computational model and provide additional meta-data to enable better reasoning about the contents of this model. In this way, there is minimal duplication of standardization efforts and users of SBOL can elaborate descriptions of Component function in the language of their choice. .. py:method:: accept(visitor: Any) -> Any Invokes `visit_model` on `visitor` with `self` as the only argument. :param visitor: The visitor instance :type visitor: Any :raises AttributeError: If visitor lacks a visit_model method :return: Whatever `visitor.visit_model` returns :rtype: Any .. py:attribute:: framework :type: sbol3.typing.uri_singleton .. py:attribute:: language :type: sbol3.typing.uri_singleton .. py:attribute:: source :type: sbol3.typing.uri_singleton .. py:method:: validate(report: ValidationReport = None) -> ValidationReport .. py:function:: build_model(identity: str, type_uri: str = SBOL_MODEL) Used by Document to construct a Range when reading an SBOL file.