mmm.js

Summary
mmm.js
bbop.rest.response.mmmGeneric BBOP handler for dealing with the gross parsing of responses from the GO Molecular Model Manager REST server JSON responses.
Functions
mmmContructor for a GO MMM REST JSON response object.
commentaryReturns the commentary object (whatever that might be in any given case).
dataReturns the data object (whatever that might be in any given case).
model_idReturns the model id of the response.
inconsistent_pReturns true or false on whether or not the returned model is thought to be inconsistent.
factsReturns a list of the facts in the response.
propertiesReturns a list of the properties in the response.
individualsReturns a list of the individuals in the response.
relationsReturns a list of the relations found in the response.

bbop.rest.response.mmm

Generic BBOP handler for dealing with the gross parsing of responses from the GO Molecular Model Manager REST server JSON responses.

It will detect if the incoming response is structured correctly and give safe access to fields and properties.

It is not meant to be a model for the parts in the data section.

Summary
Functions
mmmContructor for a GO MMM REST JSON response object.
commentaryReturns the commentary object (whatever that might be in any given case).
dataReturns the data object (whatever that might be in any given case).
model_idReturns the model id of the response.
inconsistent_pReturns true or false on whether or not the returned model is thought to be inconsistent.
factsReturns a list of the facts in the response.
propertiesReturns a list of the properties in the response.
individualsReturns a list of the individuals in the response.
relationsReturns a list of the relations found in the response.

Functions

mmm

bbop.rest.response.mmm = function(raw_data)

Contructor for a GO MMM REST JSON response object.

The constructor argument is an object or a string.

Arguments

raw_datathe JSON object as a string or object

Returns

response object

commentary

bbop.rest.response.mmm.prototype.commentary = function()

Returns the commentary object (whatever that might be in any given case).

Arguments

n/a

Returns

copy of commentary object or null

data

bbop.rest.response.mmm.prototype.data = function()

Returns the data object (whatever that might be in any given case).  This grossly returns all response data, if any.

Arguments

n/a

Returns

copy of data object or null

model_id

bbop.rest.response.mmm.prototype.model_id = function()

Returns the model id of the response.

Arguments

n/a

Returns

string or null

inconsistent_p

bbop.rest.response.mmm.prototype.inconsistent_p = function()

Returns true or false on whether or not the returned model is thought to be inconsistent.  Starting assumption is that it is not.

Arguments

n/a

Returns

true or false

facts

bbop.rest.response.mmm.prototype.facts = function()

Returns a list of the facts in the response.  Empty list if none.

Arguments

n/a

Returns

list

properties

bbop.rest.response.mmm.prototype.properties = function()

Returns a list of the properties in the response.  Empty list if none.

Arguments

n/a

Returns

list

individuals

bbop.rest.response.mmm.prototype.individuals = function()

Returns a list of the individuals in the response.  Empty list if none.

Arguments

n/a

Returns

list

relations

bbop.rest.response.mmm.prototype.relations = function()

Returns a list of the relations found in the response.  Likely not to be there, so check the return.

Arguments

n/a

Returns

list

bbop.rest.response.mmm = function(raw_data)
Contructor for a GO MMM REST JSON response object.
bbop.rest.response.mmm.prototype.commentary = function()
Returns the commentary object (whatever that might be in any given case).
bbop.rest.response.mmm.prototype.data = function()
Returns the data object (whatever that might be in any given case).
bbop.rest.response.mmm.prototype.model_id = function()
Returns the model id of the response.
bbop.rest.response.mmm.prototype.inconsistent_p = function()
Returns true or false on whether or not the returned model is thought to be inconsistent.
bbop.rest.response.mmm.prototype.facts = function()
Returns a list of the facts in the response.
bbop.rest.response.mmm.prototype.properties = function()
Returns a list of the properties in the response.
bbop.rest.response.mmm.prototype.individuals = function()
Returns a list of the individuals in the response.
bbop.rest.response.mmm.prototype.relations = function()
Returns a list of the relations found in the response.
Close