Interoperability: Code and API
Source codeIATR is an open source project. Please contact us for source code access.
MediaWiki macroThe following Mediawiki macro allows for linkouts to IATR given a tool name. Install the HTTP/Request.php PHP package, download the code, save it as extensions/IATR.php in your MediaWiki installation, add
require_once 'extensions/IATR.php';to LocalSettings.php, and call the macro with:
<IATR>TOOL_NAME</IATR>This macro was written by Robert Buccigrossi of Turner Consulting Group under a contract funded by the NIH Blueprint for Neuroscience Research and is distributed under the GNU General Public License.
MoinMoin macroThe following MoinMoin macro allows for linkouts to IATR given a tool name. Download the code, install it in the MoinMoin macro directory as IATR.py, and call the macro with:
[[IATR(TOOL_NAME)]]The macro attempts to match partial tool names. This macro requires the following python modules:
General APIURLs to listed tools may be constructed by replacing TOOL_ID in the following URL with the IATR ID of the desired tool:
http://www.cma.mgh.harvard.edu/iatr/display.php?spec=id&ids=TOOL_IDOccasionally tools are removed from IATR; links to removed tools will return an error. IDs of removed tools are not reassigned.
URLs to return XML-wrapped information from IATR may be constructed as described below. For more information or to request other functionality, please contact us.
Note that in the event of an error, the standard (HTML) IATR error page is returned. This is a feature.
XML index of toolsThe following URL returns an XML listing of basic information about all tools in IATR:
XML tool listingsXML-wrapped information on single tools may be accessed by replacing TOOL_ID in the following URL with the IATR ID of the desired tool:
XML tool name searchSearches for tool names may be performed by replacing NAME with the desired tool name in the URL below:
http://www.cma.mgh.harvard.edu/iatr/xml.php?spec=wsearch&name=NAME&ret=scoresA brief description of matching tools and the accuracy of the name match is returned. If ret=first is given, full information about the best match is returned
RDF APIThanks to Yong Gao for providing the back end that does the work.
RDF tool listingsRDF-wrapped information on single tools may be accessed by replacing TOOL_ID in the following URL with the IATR ID of the desired tool: