phenoscape / phenoscape-kb-services

Web services application for the Phenoscape RDF knowledgebase.
https://kb.phenoscape.org/apidocs/#/
MIT License
1 stars 3 forks source link

some entity subsumers return counts of 0 in taxon annotation search #587

Closed balhoff closed 2 years ago

balhoff commented 2 years ago

Example: http://purl.org/phenoscape/kb/patterns/part_of.yaml#112ebb5ef353bd352bec396009c4f807ebbef0f9

curl -X GET "https://kb.phenoscape.org/api/v2-beta/taxon/annotations?entity=http%3A%2F%2Fpurl.org%2Fphenoscape%2Fkb%2Fpatterns%2Fpart_of.yaml%23112ebb5ef353bd352bec396009c4f807ebbef0f9&parts=false&historical_homologs=false&serial_homologs=false&limit=20&offset=0&total=true" -H "accept: application/json"
balhoff commented 2 years ago

This seems to have been fixed by the restructuring of generated classes we did for the v2 service release:

$ curl -X GET "https://kb.phenoscape.org/api/v2-beta/taxon/annotations?entity=http%3A%2Fenoscape%2Fkb%2Fpatterns%2Fpart_of.yaml%23112ebb5ef353bd352bec396009c4f807ebbef0f9&parts=false&historical_homologs=false&serial_homologs=false&limit=20&offset=0&total=true" -H "accept: application/json"
{"total":0}

$ curl -X GET "https://kb.phenoscape.org/api/v2/taxon/annotations?entity=http%3A%2F%2Fpurl.org%2Fphenoscape%2Fkb%2Fpatterns%2Fpart_of.yaml%23112ebb5ef353bd352bec396009c4f807ebbef0f9&parts=false&historical_homologs=false&serial_homologs=false&limit=20&offset=0&total=true" -H "accept: application/json"
{"total":807477}