Data Transformations


Posted on July 04, 2008


Data Transformation.

Data Transformation transforms the raw Source Data into specific internal data format (i.e. Data Table) which can be manipulated by prefuse directly. We can also see Data Transformation as data importing process. Prefuse, like any other visualization toolkit or aplication, provides data importing from common text file or from database. It provides data "exporting" as well.

Data Transformations (prefuse.data.io).
Data Transformations (prefuse.data.io).
  • There are Reader and Writer available for Graph and Table structure.
  • Source Data can be comma-separated, delimiter-separated, or fixed width values in plain text file.
  • Source Data can be GraphML or TreeML in XML file.
  • You can use ConnectionFactory from prefuse.data.io.sql to query database and to get DatabaseDataSource which can (by using SQLDataHandler) populate query result into prefuse.data.Table.

2 comments:

Pratibha said...

How can I read a 2d matrix from a text file and render that data as a cluster? It would be of great help if you could clarify this.

--Pratibha

Easy said...

@Pratibha: if your 2d matrix file is just a simple delimited text and describes row-wise tabular data, then you can take a look at prefuse.data.io. DelimitedTextTableReader. Almost all prefuse demos (e.g. ZipCode) read such input text file.

It really depends on the meaning of the 2d matrix and the cluster to render. Maybe you can give some example of your data and how a cluster representation looks like.