From: <rv...@us...> - 2010-03-11 14:04:37
|
Revision: 537 http://treebase.svn.sourceforge.net/treebase/?rev=537&view=rev Author: rvos Date: 2010-03-11 14:04:30 +0000 (Thu, 11 Mar 2010) Log Message: ----------- It makes more sense to have this document here as opposed to in the /help folder. Also, this is now preprocessed to have the sidebarLeft.jsp menu applied. Added Paths: ----------- trunk/treebase-web/src/main/webapp/WEB-INF/pages/urlAPI.jsp Added: trunk/treebase-web/src/main/webapp/WEB-INF/pages/urlAPI.jsp =================================================================== --- trunk/treebase-web/src/main/webapp/WEB-INF/pages/urlAPI.jsp (rev 0) +++ trunk/treebase-web/src/main/webapp/WEB-INF/pages/urlAPI.jsp 2010-03-11 14:04:30 UTC (rev 537) @@ -0,0 +1,109 @@ +<div class="gutter"> +<h2>URL API</h2> +<p> + The TreeBASE2 website provides users with simple ways to navigate the underlying data + programmatically. This page describes the stateless web service interface and URL architecture + that can be used to search the web site and obtain data in a variety of formats with rich semantics. +</p> +<h3>PhyloWS support</h3> +<p> + The site structure described here is designed to be compliant with the emerging + <a href="http://evoinfo.nescent.org/PhyloWS">PhyloWS</a> standard. One of the tenets of the + standard is that URLs contain a <strong>/phylows/</strong> delimiter below which the standard + recommends a <a href="https://www.nescent.org/wg_evoinfo/PhyloWS/REST">simple API</a> to derefence + phylogenetic data by their accession numbers. In the examples below, the url fragments come + immediately below the <strong>/phylows/</strong> delimiter (everything between the + <strong>http://</strong> and <strong>phylows</strong> is considered + subject to change, likely to be stabilized using <a href="http://purl.org">purl</a> addresses). +</p> +<h3>Site sections</h3> +<p>The data on the TreeBASE2 website are organized in four subsections:</p> +<ul> + <li><strong>taxon/</strong> <em>operational taxonomic units, taxonomic mappings and outlinks</em></li> + <li><strong>matrix/</strong> <em>character state matrices, morphological character definitions</em></li> + <li><strong>tree/</strong> <em>contains trees and tree nodes</em></li> + <li><strong>study/</strong> <em>full submission records, including citation and analysis records</em></li> +</ul> +<p> + Within those four sections, every item in the TreeBASE2 database can be de-referenced by appending + the item's full identifier to the right section name. For example, <strong>tree/TB2:Tr2227</strong> + represents a tree (and returns a simple RDF file to describe the tree). For some classes of objects, + these short addresses can be passed a <strong>format</strong> + parameter to specify in which data format to represent the object: + <a href="/treebase-web/phylows/study/TB2:S1787?format=html">study/TB2:S1787?format=html</a>. + Identifiers that match any of the following expressions can be represented as <strong>nexml</strong>, + <strong>nexus</strong>, <strong>rdf</strong> or <strong>html</strong> (i.e. in a web page): +</p> +<ul> + <li><strong>matrix/TB2:M[0-9]+</strong> <em>character state matrix</em></li> + <li><strong>tree/TB2:Tr[0-9]+</strong> <em>phylogenetic tree</em></li> + <li><strong>study/TB2:S[0-9]+</strong> <em>study record</em></li> +</ul> +<h3>NeXML support</h3> +<p> + The <strong>nexml</strong> and the <strong>rdf</strong> download options both use output + generated by the java support libraries available from the + <a href="http://nexml.org/nexml/java">nexml website</a>. The website uses the nexml annotation + feature extensively to transmit all the metadata stored by the database. Nexml annotations + are <a href="http://www.w3.org/TR/xhtml-rdfa-primer/">RDFa</a> compliant element structures + that use <a href="http://www.w3.org/TR/curie/">CURIE</a> strings to identify metadata properties, + and @content attributes to store the property value. For example, this (simplified) annotation: + <strong> + <meta content="uBio:2538170" property="tb:identifier.ubio"/> + </strong> + means that the element that encloses it has a special kind of identifier attached to it, namely + one that TreeBASE recognizes as originating in <a href="/treebase-web/phylows/taxon/uBio:2538170">uBio</a>. +</p> +<p> + The salient part is + the CURIE string predicate <strong>tb:identifier.ubio</strong>, which is one of a + <a href="http://spreadsheets.google.com/pub?key=rL--O7pyhR8FcnnG5-ofAlw">long list</a> of + proposed predicates that are written in TreeBASE's NeXML output and can be used as + <a href="http://www.loc.gov/standards/sru/specs/cql.html">CQL</a> search predicates. The predicates + proposed (and now experimentally transmitted) are intended to be subclasses of predicates + from commonly used vocabularies. For example, <strong>tb:identifier.ubio</strong> inherits from + <a href="http://dublincore.org/documents/dcmi-terms/#terms-identifier">dcterms:identifier</a> and + so any of the latter's semantics apply to the former, which is refined to indicate that the + value is a uBio namebank ID. +</p> +<h3>Searching</h3> +<p> + The TreeBASE website can be searched using a subset of constructs from the + <a href="http://www.loc.gov/standards/sru/specs/cql.html">CQL</a> specification. Specifically, + the predicates + <a href="http://spreadsheets.google.com/pub?key=rL--O7pyhR8FcnnG5-ofAlw">listed here with + an asterisk</a> can be used in statements in the site section they apply to, such that, for example + a taxon can be retrieved by its ncbi ID like so: + <div style="background-color:;padding:10px"> + <strong>taxon/find?query=tb.identifier.ncbi=<em><ncbi taxon id></em></strong> + </div> + or by its name like so: + <div style="background-color:;padding:10px"> + <strong>taxon/find?query=tb.title.taxon=<em><name></em></strong> + </div> + or using an exact match + (<strong>==</strong>) or a case-insensitive one (<strong>=/ignoreCase</strong>). These statements + can be combined with boolean <strong>and</strong>, <strong>or</strong> and <strong>not</strong>. + For example: + <div style="background-color:;padding:10px"> + <strong>study/find?query=dcterms.contributor=Huelsenbeck or dcterms.contributor=Ronquist</strong> + </div> + Finally, searching can be modified to project the results from one section info those of another. The + effect is roughly the same as switching between tabs in the search section: if the results are a + list of tree and you click on the matrix search tab, the trees are converted to the set of matrices + on which the trees are based. This behaviour can be used by specifying the + <strong>recordSchema=<section></strong> argument, i.e.: + <div style="background-color:;padding:10px"> + <strong>taxon/find?query=dcterms.title=="Homo sapiens"&recordSchema=tree</strong> + </div> + returns all the trees that have <em>Homo sapiens</em> in them. + By default, all these queries return a web page, but with a <strong>format=rss1</strong> argument + the search results are listed in an RDF compatible RSS1.0 file, i.e.: + <div style="background-color:;padding:10px"> + <strong>taxon/find?query=tb.title.taxon=<em><name></em>&format=rss1</strong> + </div> + The returned results in RSS1.0 use the short urls of the form <strong><section>/<id></strong>, whose + returned resource descriptions (like <a href="/treebase-web/phylows/tree/TB2:Tr2227"> + this</a> one) need to be scanned to discover suitable serialization formats. +</p> +</div> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hl...@us...> - 2010-03-20 18:28:48
|
Revision: 637 http://treebase.svn.sourceforge.net/treebase/?rev=637&view=rev Author: hlapp Date: 2010-03-20 18:28:42 +0000 (Sat, 20 Mar 2010) Log Message: ----------- Remove excessive whitespace and make markup at least a little bit constistent. Modified Paths: -------------- trunk/treebase-web/src/main/webapp/WEB-INF/pages/urlAPI.jsp Modified: trunk/treebase-web/src/main/webapp/WEB-INF/pages/urlAPI.jsp =================================================================== --- trunk/treebase-web/src/main/webapp/WEB-INF/pages/urlAPI.jsp 2010-03-20 18:16:27 UTC (rev 636) +++ trunk/treebase-web/src/main/webapp/WEB-INF/pages/urlAPI.jsp 2010-03-20 18:28:42 UTC (rev 637) @@ -1,31 +1,14 @@ <div id="contentRight"> <div class="gutter"> <h1>Data Access</h1> - <p><b>Web Browser User Interface</b></p> -<p> </p> +<p>Primary access to the database is through its web interface, where users most commonly search on authors, citations, and taxa. Datasets are downloadable in NEXUS and NeXML formats for further analysis.</p> -<p><span>Primary access to the -database is through its web interface, where users most commonly search on -authors, citations, and taxa. Datasets are downloadable in NEXUS and NeXML -formats for further analysis.</span></p> - -<p> </p> - -<p><span>TreeBASE can be -accessed programmatically through a stateless web service interface and URL -architecture.</span> This interface can deliver data in several different -formats, including NEWICK, NEXUS, JSON, NeXML.</p> - -<p> </p> - <p><b>Programmatic Data Access</b></p> -<p>In addition to the web interface, there are several forms of -programmatic access to the contents:</p> - +<p>In addition to the web interface, TreeBASE can be accessed programmatically through a stateless web service interface and URL architecture. This interface can deliver data in several different formats, including NEWICK, NEXUS, JSON, NeXML.</p> <ul type=disc> <li>a <a href="http://evoinfo.nescent.org/PhyloWS" title=PhyloWS id=fp8u>PhyloWS</a> RESTful API. A detailed description @@ -38,78 +21,61 @@ <li>SQL data dumps, coming soon.</li> </ul> -<p> </p> - <p><i><u>Links to external objects</u></i></p> -<p><br> -<span>TreeBASE stores references to and provides +<p>TreeBASE stores references to and provides outlinks to external objects including DOIs (for publications), NameBankIDs and -NCBI taxids (for taxa), and Genbank accession numbers (for sequences). </span><br> -<br> -<i><u>Links to objects within TreeBASE</u></i><br> -<br> -TreeBASE issues persistent and resolvable uniform resource identifiers (URIs) +NCBI taxids (for taxa), and Genbank accession numbers (for sequences). </p> + +<p><i><u>Links to objects within TreeBASE</u></i></p> + +<p>TreeBASE issues persistent and resolvable uniform resource identifiers (URIs) to studies, matrices, trees, and nodes in trees. These allow external data services to link directly into TreeBASE resources. For example: </p> -<p> </p> - <table border=0 cellspacing=0 cellpadding=0 width=600 style='width:5.0in' id=ua52> <tr> <td width=100 style='width:60.0pt;padding:1.8pt 1.8pt 1.8pt 1.8pt'> - <p>URI to a study:</p> + URI to a study: </td> <td width="50%" style='width:50.0%;padding:1.8pt 1.8pt 1.8pt 1.8pt'> - <p>http://purl.org/phylo/treebase/phylows/study/TB2:S1925</p> + http://purl.org/phylo/treebase/phylows/study/TB2:S1925 </td> </tr> <tr> <td width=100 style='width:60.0pt;padding:1.8pt 1.8pt 1.8pt 1.8pt'> - <p>URI to a matrix:</p> + URI to a matrix: </td> <td width="50%" style='width:50.0%;padding:1.8pt 1.8pt 1.8pt 1.8pt'> - <p>http://purl.org/phylo/treebase/phylows/matrix/TB2:M2610</p> + http://purl.org/phylo/treebase/phylows/matrix/TB2:M2610 </td> </tr> <tr> <td width=100 style='width:60.0pt;padding:1.8pt 1.8pt 1.8pt 1.8pt'> - <p>URI to a tree:</p> + URI to a tree: </td> <td width="50%" style='width:50.0%;padding:1.8pt 1.8pt 1.8pt 1.8pt'> - <p>http://purl.org/phylo/treebase/phylows/tree/TB2:Tr2026</p> + http://purl.org/phylo/treebase/phylows/tree/TB2:Tr2026 </td> </tr> </table> -<p> </p> - <p><b>RSS Feeds</b></p> -<p style='margin-bottom:12.0pt'><br> -<span>When TreeBASE's API delivers a list of results +<p>When TreeBASE's API delivers a list of results in RDF/XML, it typically expresses this in RSS 1.0. This delivery allows programmatic capture of these results as well as human perusal using a RSS client reader or browser. For example, a user interested in a certain taxon could express a query as a PhyloWS URL and enter it into his or her favorite RSS reader. As a result, any new submissions to TreeBASE that includes this -taxon of interest will alert the user with a new RSS article. </span></p> +taxon of interest will alert the user with a new RSS article. </p> <p><b>Data Dumps</b></p> -<p> </p> - <p>In the future, users who wish to perform queries and analyses beyond the scope and performance of TreeBASE will be able to acquire -entire periodic data dumps that comply<span style='background:white'> with a -standard data model, such as BioSQL.</span></p> +entire periodic data dumps that comply with a +standard data model, such as BioSQL.</p> -<p> </p> - - - - - - </div> -</div> \ No newline at end of file +</div></div> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sfr...@us...> - 2010-12-08 17:28:35
|
Revision: 766 http://treebase.svn.sourceforge.net/treebase/?rev=766&view=rev Author: sfrgpiel Date: 2010-12-08 17:28:29 +0000 (Wed, 08 Dec 2010) Log Message: ----------- Added link to OAI-PMH wiki Modified Paths: -------------- trunk/treebase-web/src/main/webapp/WEB-INF/pages/urlAPI.jsp Modified: trunk/treebase-web/src/main/webapp/WEB-INF/pages/urlAPI.jsp =================================================================== --- trunk/treebase-web/src/main/webapp/WEB-INF/pages/urlAPI.jsp 2010-12-06 19:09:26 UTC (rev 765) +++ trunk/treebase-web/src/main/webapp/WEB-INF/pages/urlAPI.jsp 2010-12-08 17:28:29 UTC (rev 766) @@ -22,11 +22,12 @@ title="PhyloWS">PhyloWS</a> RESTful API. A detailed description of <a href="https://sourceforge.net/apps/mediawiki/treebase/index.php?title=API" title="TreeBASE's PhyloWS implementation">TreeBASE's PhyloWS - implementation</a> is at the TreeBASE wiki. + implementation</a> is on the TreeBASE wiki. </li> <li> <a href="http://www.openarchives.org/pmh/" title="OAI-PMH">OAI-PMH</a> - harvesting interface, coming soon. + metadata harvesting interface is available, though under development. + A detailed description is on the <a href="http://sourceforge.net/apps/mediawiki/treebase/index.php?title=OAI-PMH" title="OAI-PMH">TreeBASE wiki</a>. </li> <li>SQL data dumps, coming soon.</li> </ul> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |