Connectivity - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Connectivity

 

New File Formats

Import and Export

New File Formats

JSON

The new JSON package allows import and export of files and strings in the JSON format, a popular format used by many modern applications for exchanging structured data.
Example: Import JSON data encoding the mailing address of Maplesoft headquarters.

(1.1.1)

(1.1.2)

(1.1.3)

Cartographic Data

The KML file format and the related KMZ compressed format are popular XML-based map data formats which are used by many mapping applications.

KML permits geographic areas and contours to be defined using line and polygon primitives.

The new Import command, described in more detail below, can import a KML map file and represent it as a 2-D plot.
In addition to KML and KMZ, Import also supports the GPX and SHP cartographical formats.

Example: Import a four-colour KMZ map of the 48 contiguous states of the United States of America.

Biological Sequence Formats

The Import and Export commands also support three popular text-based formats for representing DNA and protein sequences: FASTA, FASTQ, and GenBank.
You can import genetic or proteinomic data into your session and use text processing tools to analyze the imported sequence.

Example: Import a DNA sequence from a FASTA file.

Study the metadata for the first sequence in the file:

(1.3.1)

Examine the nucleotide codes at positions 16200 through 16250:

(1.3.2)

Count the frequency of each of nucleotide base (A, C, G, or T) in the sequence:

 

(1.3.3)


Graph Theory Formats

The GraphTheory package now supports six new formats for import and export: DGML , Graphlet , GraphML , GXL , Pajek , and TGF.
For more information on supported graph-theoretic formats, see Formats.

GraphML Format

Pajek Format

Import and Export

The new Import and Export commands provide a generic command-based mechanism to move data between Maple and the operating environment.

The Import command provides a ubiquitous mechanism for importing data with a single command.

Import is agnostic of the type of data: it can handle numeric and tabular data, images, cartographic data, specialized text file formats like XML and JSON, and special-purpose formats for graph theory and linear optimization. Several examples appear below.

 

Import 3D Models

Import Tabular Data

Import Structured Data

Import Graphs

(2.1)

(2.2)

(2.3)

(2.4)

(2.5)

(2.6)

 

The Export command provides an equally generic and powerful mechanism for exporting data from Maple with a single command.

 

Export Visualizations

Export to MathML

(2.7)

 

(2.8)

(2.9)

 

Compute an integral in Maple and export it to a MathML file.

(2.10)

(2.11)

 

Demonstrate that the export was successful by re-importing the data and retrieving the original expression.

(2.12)

 


Download Help Document