What is MIME type "application/sbml"?

A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.

The MIME type application/sbml is for files that use the Systems Biology Markup Language. It is built on an XML structure, which ensures a well-defined format for computer-readable biological models.
This MIME type is mainly used to represent and exchange models of complex biological systems. Researchers and simulation tools use it to share, analyze, and simulate models of metabolic networks, gene regulation, and cell signaling.
Files that conform to this MIME type often use the XML or SBML format.
For more technical details, you can visit the SBML official website.

Associated file extensions

Usage Examples

HTTP Header

When serving content with this MIME type, set the Content-Type header:


    Content-Type: application/sbml    
  

HTML

In HTML, you can specify the MIME type in various elements:


    <a href="file.dat" type="application/sbml">Download file</a>    
  

Server-side (Node.js)

Setting the Content-Type header in Node.js:


    const http = require('http');    
    
    http.createServer((req, res) => {    
      res.setHeader('Content-Type', 'application/sbml');    
      res.end('Content here');    
    }).listen(3000);    
  

Associated file extensions

FAQs

What is the application/sbml MIME type used for?

The MIME type application/sbml represents files formatted in the Systems Biology Markup Language (SBML). These files are used by scientists and software tools to store and exchange computational models of biological processes, such as metabolic networks and cell signaling pathways.

How do I configure Apache to serve SBML files?

To ensure your Apache server sends the correct headers for SBML models, add the AddType directive to your .htaccess file or main configuration. Use the line: AddType application/sbml .sbml.

Can I view application/sbml files in a web browser?

Most browsers will treat application/sbml as a generic XML document. They will either display the raw XML document tree or prompt the user to download the file. Browsers do not natively visualize the biological models; for that, you need specialized software or a JavaScript library.

What is the relationship between application/sbml and application/xml?

Since SBML is based on XML, these files are text-based and structurally similar to standard application/xml files. While generic XML parsers can read them, using the specific application/sbml MIME type helps applications identify that the content follows the specific SBML schema for biological data.

How do I open an SBML file found on my computer?

Because the format is XML-based, you can view the raw code in any text editor like Notepad++ or VS Code. To view the actual biological model or run simulations, you must use bioinformatics software such as COPASI, CellDesigner, or Python libraries designed for systems biology.

Are there security risks associated with SBML files?

As with any XML-based format, applications parsing application/sbml can be vulnerable to XML External Entity (XXE) attacks if the parser is not configured correctly. Developers should ensure their XML parsers disable external entity resolution when processing user-uploaded SBML files.

Why does my SBML file have a .xml extension instead of .sbml?

It is common for SBML files to use the generic .xml extension because they are valid XML documents. However, using the specific .sbml extension is recommended to distinguish them from other XML data types. You can learn more about the generic extension at xml.

General FAQ

What is a MIME type?

A MIME (Multipurpose Internet Mail Extensions) type is a standard that indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.

MIME types are important because they help browsers and servers understand how to process a file. When a browser receives a file from a server, it uses the MIME type to determine how to display or handle the content, whether it's an image to display, a PDF to open in a viewer, or a video to play.

MIME types consist of a type and a subtype, separated by a slash (e.g., text/html, image/jpeg, application/pdf). Some MIME types also include optional parameters.

How do I find the MIME type for a file?

You can check the file extension or use a file identification tool such as file --mime-type on the command line. Many programming languages also provide libraries to detect MIME types.

Why are multiple MIME types listed for one extension?

Different applications and historical conventions may use alternative MIME identifiers for the same kind of file. Showing them all helps ensure compatibility across systems.