Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How get all synonyms for a specific taxoname ? #7

Closed
bolom opened this issue Jun 16, 2022 · 1 comment
Closed

How get all synonyms for a specific taxoname ? #7

bolom opened this issue Jun 16, 2022 · 1 comment

Comments

@bolom
Copy link

bolom commented Jun 16, 2022

First all, thanks for this amazing library.

There is a way to get all synonyms for a specific Taxon Name / Plant ?


query = {Name.genus: "Acalypha" , Name.species: "arvensis"}
res = powo.search(query)
res.size()
print([r['name'] for r in res if 'name' in r])

Returns me 4 plants, however I can see 7 synonyms

https://powo.science.kew.org/taxon/urn:lsid:ipni.org:names:1115-2

@bolom
Copy link
Author

bolom commented Jun 16, 2022

I've found the solution

https://github.com/RBGKew/pykew/blob/master/pykew/powo.py#L8

@bolom bolom closed this as completed Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant