Transforma is a webcard intended to be used in transforming structured
data. Available operations are listed in the command bar at the top of the page.
- Home displays this information.
- Importdata reads data from a specified URL and adds to the
database. The format of the data is determined by the extension in the URL. Currently,
Transforma accepts data in Relational Data Format (xml), Knowledge Interchange Format
(kif), and Human Readable Format (hrf). Note
that Transforma is able to import data from sites (host and port) other than its own
only if the server complies with the W3C standard on cross-site data access (i.e. only
if it sets the Access-Control-Allow-Origin header field appropriately).
Otherwise, it is necessary to copy the data to the location from which Transforma
was loaded.
- Tables shows the names of all tables stored in the
database. Clicking on a table name shows the contents of the corresponding table.
If the display is empty, it means the database is empty.
- Search searches the database for all instances of the
patterns in the Selection input that satisfy the sentences in the Condition input.
Selections and conditions are assumed to be expressed in HRF. Patterns are separated
by whitespace. For example, searching for "X Y" such that "p(X,Y)" will produce
a table of all pairs of objects that satisfy the "p" relation.
- Transform searches the database for all instances of the
patterns in the Conditions input, deletes all corresponding instances of the sentences
in the Deletions input and adds all corresponding instances of the sentences in the
Additions input. Conditions, Deletions, and Additions are assumed to be expressed
in HRF.
- Exportdata opens a new window and prints the contents of the database in
the specified format. Currently, Transforma outputs data in Relational Data Format (xml),
Knowledge Interchange Format (kif), and Human Readable Format (hrf).
It is possible to save the state of an instance of Transforma using your
browser's Save button. In Safari, be sure to select Web Archive. Note that
saving and restoring in this way may limit your ability to retrieve data from
sites that do not allow cross-site access. (See Importdata above.)
|