Skip to content

Add input as as ancestor of itself #41

@amykglen

Description

@amykglen

I noticed that the Biolink Lookup Service seems to return only proper ancestors (i.e., excluding the input item), but all descendants (i.e., including the input item).

for example, this ancestor query for MolecularMixture:

curl -X GET "https://bl-lookup-sri.renci.org/bl/MolecularMixture/ancestors?version=2.1.0" -H  "accept: application/json"

does not return MolecularMixture:

[
  "biolink:ChemicalMixture",
  "biolink:ChemicalEntity",
  "biolink:NamedThing",
  "biolink:Entity",
  "biolink:PhysicalEssence",
  "biolink:PhysicalEssenceOrOccurrent",
  "biolink:ChemicalOrDrugOrTreatment",
  "biolink:ChemicalEntityOrGeneOrGeneProduct",
  "biolink:ChemicalEntityOrProteinOrPolypeptide"
]

but this descendant query for MolecularMixture:

curl -X GET "https://bl-lookup-sri.renci.org/bl/MolecularMixture/descendants?version=2.1.0" -H  "accept: application/json"

does return MolecularMixture:

[
  "biolink:MolecularMixture",
  "biolink:Drug"
]

is this deliberate? the inconsistency seems a bit odd to me.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions