getModel {InterMineR} | R Documentation

## Get the model of InterMine

### Description

Returns a representation of the data model for the mine. This describes the kind of data held, and the properties that data can have. This information can be used to build queries against that data, and to interpret the information received.

### Usage

    getModel(im, timeout = 3)

### Arguments

`im` | a list containing the base URL and API token.
`timeout` | an integer, representing the number of seconds to wait for the webservice to respond.

### Details

The details of the data model for the various mines are available at the websites obtained by running the following command: paste(listMines()$URL, "/tree.do", sep="")

### Value

a multi-level list, representating the data model for the mine. The first-level is a list of the InterMine objects (e.g., Gene, Exon). Each second-level list, corresponding to an InterMine object, contains three data.frame objects: attributes, references and collections. Each attribute is a property of the InterMine object. Each reference or collection is itself an InterMine object, acting as a member object of the InterMine object.

### Author(s)

InterMine Team

### Examples

      # Retrieve data model for FlyMine  # temporarily removed
      # im.fly = initInterMine(listMines()["FlyMine"])

      # model = getModel(im.fly)

[Package InterMineR version 1.6.1 Index]