How to use the sbol3.config.FileFormats 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 / config.py View on Github external
def setFileFormat(_file_format):
        """

        :param file_format: The file format to use.
        :return: None
        """
        global file_format  # must declare that we're assigning to a global variable
        if _file_format == FileFormats.JSON.value:
            file_format = FileFormats.JSON.value
        elif _file_format == FileFormats.NTRIPLES.value:
            file_format = FileFormats.NTRIPLES.value
        else:
            file_format = FileFormats.RDFXML.value
github SynBioDex / pySBOL / sbol3 / config.py View on Github external
def setFileFormat(_file_format):
        """

        :param file_format: The file format to use.
        :return: None
        """
        global file_format  # must declare that we're assigning to a global variable
        if _file_format == FileFormats.JSON.value:
            file_format = FileFormats.JSON.value
        elif _file_format == FileFormats.NTRIPLES.value:
            file_format = FileFormats.NTRIPLES.value
        else:
            file_format = FileFormats.RDFXML.value
github SynBioDex / pySBOL / sbol3 / config.py View on Github external
def setFileFormat(_file_format):
        """

        :param file_format: The file format to use.
        :return: None
        """
        global file_format  # must declare that we're assigning to a global variable
        if _file_format == FileFormats.JSON.value:
            file_format = FileFormats.JSON.value
        elif _file_format == FileFormats.NTRIPLES.value:
            file_format = FileFormats.NTRIPLES.value
        else:
            file_format = FileFormats.RDFXML.value