Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 1.97 KB

OntolApi.md

File metadata and controls

63 lines (42 loc) · 1.97 KB

BioLinkApi.OntolApi

All URIs are relative to https://localhost/api

Method HTTP request Description
getInformationContentResource GET /ontol/information_content/{subject_category}/{object_category}/{subject_taxon} Calculates information content

getInformationContentResource

getInformationContentResource(subjectTaxon, objectCategory, subjectCategory, opts)

Calculates information content

Example

var BioLinkApi = require('bio_link_api');

var apiInstance = new BioLinkApi.OntolApi();

var subjectTaxon = "subjectTaxon_example"; // String | 

var objectCategory = "objectCategory_example"; // String | 

var subjectCategory = "subjectCategory_example"; // String | 

var opts = { 
  'evidence': "evidence_example" // String | Object id, e.g. ECO:0000501 (for IEA; Includes inferred by default)                     or a specific publication or other supporting ibject, e.g. ZFIN:ZDB-PUB-060503-2.                     
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.getInformationContentResource(subjectTaxon, objectCategory, subjectCategory, opts, callback);

Parameters

Name Type Description Notes
subjectTaxon String
objectCategory String
subjectCategory String
evidence String Object id, e.g. ECO:0000501 (for IEA; Includes inferred by default) or a specific publication or other supporting ibject, e.g. ZFIN:ZDB-PUB-060503-2. [optional]

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json