Interoperability: Code and API
Source code
IATR is an open source project. Please contact us for source code access.MediaWiki macro
The 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, addrequire_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 macro
The 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:
- urllib
- urllib2
- xml.dom.minidom
- xml.xpath
General API
URLs to listed tools may be constructed by replacing TOOL_ID in the following URL with the IATR ID of the desired tool:http://iatr.virtualbrain.org/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.
XML API
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 tools
The following URL returns an XML listing of basic information about all tools in IATR:http://iatr.virtualbrain.org/xml.php?spec=index
XML tool listings
XML-wrapped information on single tools may be accessed by replacing TOOL_ID in the following URL with the IATR ID of the desired tool:http://iatr.virtualbrain.org/xml.php?spec=id&ids=TOOL_ID
XML tool name search
Searches for tool names may be performed by replacing NAME with the desired tool name in the URL below:http://iatr.virtualbrain.org/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 API
Thanks to Yong Gao for providing the back end that does the work.RDF tool listings
RDF-wrapped information on single tools may be accessed by replacing TOOL_ID in the following URL with the IATR ID of the desired tool:http://iatr.virtualbrain.org/rdf.php?spec=id&ids=TOOL_ID