| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<title>Stag - Structured Tag Library</title> |
| 5 |
</head> |
| 6 |
|
| 7 |
<body> |
| 8 |
<h1>Stag - Structured Tag Library</h1> |
| 9 |
|
| 10 |
<table> |
| 11 |
<tr> |
| 12 |
<td valign="top" bgcolor="#000000"> |
| 13 |
</td> |
| 14 |
<td> |
| 15 |
|
| 16 |
The Stag project currently consists of two perl modules, |
| 17 |
both of which are available from <a href="http://www.cpan.org">CPAN</a> or <a href="http://sourceforge.net/projects/stag">sourceforge</a>: |
| 18 |
|
| 19 |
<h3>Data::Stag</h3> |
| 20 |
<p> |
| 21 |
This perl module is for querying and manipulating complex |
| 22 |
data as recursively nested tag/value pairs |
| 23 |
(<b>S</b>tructured <b>tag</b>s or <b>S</b>imple |
| 24 |
<b>T</b>ree <b>ag</b>greggates). Procedural and |
| 25 |
object-oriented modes are supported. Tags can be accessed |
| 26 |
by autogenerated accessor methods. |
| 27 |
</p> |
| 28 |
<p> |
| 29 |
XML is a hierarchical data format, so this module can |
| 30 |
be used as an XML parser/writer. Other hierarchical formats |
| 31 |
are supported, including lisp S-Expressions (i.e. <a |
| 32 |
href="http://okmij.org/ftp/Scheme/xml.html">SXML</a>) and |
| 33 |
indented-text. |
| 34 |
</p> |
| 35 |
<p> |
| 36 |
Construction of parsers, transformers and writers is |
| 37 |
simplified with structured tag events, similar to and |
| 38 |
compatible with SAX. |
| 39 |
</p> |
| 40 |
<p> |
| 41 |
As well as being a useful module for perl developers, this |
| 42 |
module also comes with a number of useful scripts for |
| 43 |
manipulating stag data. |
| 44 |
</p> |
| 45 |
<p> |
| 46 |
At this time there is only a perl |
| 47 |
implementation, <a |
| 48 |
href="http://search.cpan.org/perldoc?Data::Stag">Data::Stag</a>, |
| 49 |
but C and Lisp implementations are planned. |
| 50 |
</p> |
| 51 |
<h3>DBIx::DBStag</h3> |
| 52 |
|
| 53 |
<p> |
| 54 |
This module is for conversion between relational |
| 55 |
representations and hierarchical tag-value pairs, |
| 56 |
<em>i.e.</em> Stag trees, or XML. |
| 57 |
</p> |
| 58 |
<p><b>Querying:</b> SQL query results are automatically |
| 59 |
decomposed into the relations used in the query, and a |
| 60 |
hierarchical structure is inferred. This allows you to go |
| 61 |
from multi-table joins to deeply nested hierarchical |
| 62 |
representations that capture the foreign key data in the |
| 63 |
database. |
| 64 |
</p> |
| 65 |
<p> |
| 66 |
This modules also allows you to create <b>SQL |
| 67 |
templates</b> - a powerful way of reusing complex SQL |
| 68 |
statements. |
| 69 |
</p> |
| 70 |
<p><b>Storage:</b> Stag trees can be stored in a relational |
| 71 |
database with a minimum of metadata. There are also |
| 72 |
scripts to help with construction of ad-hoc normalised |
| 73 |
relational databases from XML sources. |
| 74 |
</p> |
| 75 |
<p> |
| 76 |
<a href="http://search.cpan.org/perldoc?DBIx::DBStag">DBIx::DBStag</a> |
| 77 |
</p> |
| 78 |
</td> |
| 79 |
</tr> |
| 80 |
</table> |
| 81 |
|
| 82 |
<hr> |
| 83 |
|
| 84 |
<table> |
| 85 |
<tr> |
| 86 |
<td bgcolor="#FF8888"> |
| 87 |
<a href="http://search.cpan.org/perldoc?Data::Stag">Data::Stag</a> |
| 88 |
and |
| 89 |
<a href="http://search.cpan.org/perldoc?DBIx::DBStag">DBIx::DBStag</a> |
| 90 |
</td> |
| 91 |
<td> |
| 92 |
Perl module documentation on CPAN |
| 93 |
</td> |
| 94 |
</tr> |
| 95 |
|
| 96 |
<table> |
| 97 |
<tr> |
| 98 |
<td bgcolor="#FF8888"> |
| 99 |
<a href="script-list.html">Script Docs</a> |
| 100 |
</td> |
| 101 |
<td> |
| 102 |
Stag script documentation (these scripts come with the |
| 103 |
Stag and DBStag distributions) |
| 104 |
</td> |
| 105 |
</tr> |
| 106 |
|
| 107 |
<tr> |
| 108 |
<td bgcolor="#FF8888"> |
| 109 |
<a |
| 110 |
href="http://www.godatabase.org/cgi-bin/ubiq/ubiq.cgi">UBIQ Query Interface</a> |
| 111 |
</td> |
| 112 |
<td> |
| 113 |
A demo of DBStag for mapping query results to hierarchical |
| 114 |
tag-value data. This interface provides WWW access to a |
| 115 |
number of bioinformatics databases (Gene Ontology, Ensembl, Chado, |
| 116 |
BioSQL, GadFly). Templates can be selected, or you can |
| 117 |
feed in your own SQL. |
| 118 |
</td> |
| 119 |
</tr> |
| 120 |
|
| 121 |
<tr> |
| 122 |
<td bgcolor="#FF8888"> |
| 123 |
<a href="http://sourceforge.net/projects/stag">Stag |
| 124 |
project page on Sourceforge</a> |
| 125 |
</td> |
| 126 |
<td> |
| 127 |
Here you can find the Stag CVS repository, mail lists, etc |
| 128 |
</td> |
| 129 |
</tr> |
| 130 |
|
| 131 |
<tr> |
| 132 |
<td bgcolor="#FF8888"> |
| 133 |
<a |
| 134 |
href="http://www.fruitfly.org/~cjm/rel-talk/dbistag.html">DBStag Tutorial</a> |
| 135 |
</td> |
| 136 |
<td> |
| 137 |
Brief tutorial on basic DBStag usage for biological |
| 138 |
databases. |
| 139 |
(slightly out of date - some aspects of DBStag may have changed) |
| 140 |
</td> |
| 141 |
</tr> |
| 142 |
|
| 143 |
<tr> |
| 144 |
<td bgcolor="#FF8888"> |
| 145 |
<a href="http://search.cpan.org/perldoc?DBIx::DBStag::Cookbook">DBIx::DBStag::Cookbook</a> |
| 146 |
</td> |
| 147 |
<td> |
| 148 |
DBStag cookbook - shows how to generate a normalised |
| 149 |
relational db from an XML source (the CIA world factbook), |
| 150 |
create your own SQL templates and build a WWW query |
| 151 |
interface |
| 152 |
</td> |
| 153 |
</tr> |
| 154 |
|
| 155 |
<tr> |
| 156 |
<td bgcolor="#FF8888"> |
| 157 |
<a href="http://search.cpan.org/perldoc?DBIx::DBStag::SQLTemplate">DBIx::DBStag::SQLTemplate</a> |
| 158 |
</td> |
| 159 |
<td> |
| 160 |
The POD manpage describing SQL templates - a powerful way |
| 161 |
of reusing complex SQL statements |
| 162 |
</td> |
| 163 |
</tr> |
| 164 |
|
| 165 |
<tr> |
| 166 |
<td bgcolor="#FF8888"> |
| 167 |
<a href="stag-poster.html">Stag Poster</a> |
| 168 |
</td> |
| 169 |
<td> |
| 170 |
DBStag poster from Genome Informatics 2003 at Cold Spring Harbor |
| 171 |
Laboratory (large image) |
| 172 |
</td> |
| 173 |
</tr> |
| 174 |
<tr> |
| 175 |
<td bgcolor="#FF8888"> |
| 176 |
<a |
| 177 |
href="http://www.godatabase.org/dev/sql/stag-templates/">Example Stag Templates</a> |
| 178 |
</td> |
| 179 |
<td> |
| 180 |
Some example Stag SQL templates for the <a href="http://www.godatabase.org/dev">Gene Ontology Database</a> |
| 181 |
</td> |
| 182 |
</tr> |
| 183 |
|
| 184 |
</table> |
| 185 |
|
| 186 |
<hr> |
| 187 |
<a href="http://sourceforge.net"> |
| •188 |
sourceforge</a> |
| 189 |
|
| 190 |
<hr> |
| 191 |
<address><a href="mailto:[email protected]">chris mungall</a></address> |
| 192 |
<!-- Created: Tue Dec 3 11:47:11 PST 2002 --> |
| 193 |
<!-- hhmts start --> |
| 194 |
Last modified: Wed Dec 1 14:39:33 PST 2004 |
| 195 |
<!-- hhmts end --> |
| 196 |
</body> |
| 197 |
</html> |