biolink-api icon indicating copy to clipboard operation
biolink-api copied to clipboard

allow to query by relationship type and return relationship type

Open realmarcin opened this issue 8 years ago • 2 comments

I have been using this call to retrieve disease-phenotype associations from Monarch:

with urllib.request.urlopen("https://api.monarchinitiative.org/api/mart/disease/phenotype/NCBITaxon%3A9606") as url: disease_phenotype_data.append(json.loads(url.read().decode()))

It appears that there is no way to retrieve based on specified relationships and also the query result does not contain the relationship type.

Minimally it would be useful to return the relationship type. Querying by relationships is less useful potentially without a way of listing the available relationship types to begin with.

realmarcin avatar Apr 09 '18 23:04 realmarcin

After discussion with @realmarcin, it would be also good to include disease labels in the response.

deepakunni3 avatar Apr 09 '18 23:04 deepakunni3

We can add an additional filter for relationship type. But for now you can treat these as a uniform relation 'has phenotype'

cmungall avatar Apr 10 '18 00:04 cmungall