getModel: Get the model of InterMine

Description Usage Arguments Details Value Author(s) Examples

View source: R/InterMineR.R

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

1
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

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

  # model = getModel(im.fly)

InterMineR documentation built on Nov. 8, 2020, 5:58 p.m.