Chemical-Curation / chemcurator_django

Backend services for chemical curation
https://api.chemreg.epa.gov
MIT License
1 stars 0 forks source link

Index compound for resolution-Django #200

Open cmgrulke opened 3 years ago

cmgrulke commented 3 years ago

As a researcher I want to be able to retrieve not just substances, but also compounds using the resolver So that I can find compounds that do not have cognate substances

GET https://api.chemreg.epa.gov/search?identifer=$$$$$$$

Acceptance Criteria: Compounds that do not have substances need to be indexed by the resolver in order to support resolution of compounds.

mwfrost commented 3 years ago

Chris points out that since this is meant to return compounds without substances, whatever index it queries will need to include solo compounds, not just the compounds as related resources on substances

jtumkur commented 3 years ago

2 tickets

1) Compound Resolution 2) Django/Vuejs ?

Chemcurator Django: Index Compounds into Resolver Chemcurator Django: Return Compounds from Resolver (edited)

michael-barbour commented 3 years ago

@cmgrulke Is there any chance at all that a compound and substance have the same ID? If not, we can name the resolver "document" after whichever ID is most applicable.

michael-barbour commented 3 years ago

Per chris:

The id fields are intended to be globally unique persistent ids.

Ideally they would be digital object identifiers in a public global sense, but finding a way to get them registered as DOIS is a difficult process.

It would be fair to add a django model constraint across compounds and substances for ID.

This means an approach where the document id is the SID or the CID if the compound is not associated with a substance could be viable. This may still not be the best way to approach the problem, but it would probably require the least amount of resolver DB changes.