bio-ontology-research-group / aberowlweb

Other
4 stars 1 forks source link

Falsey values for flags taken as true #108

Open reality opened 4 years ago

reality commented 4 years ago

Falsey values seem to count as true values. So the following will return fine:

http://aber-owl.net/api/dlquery?type=equivalent&query=%3Chttp://purl.obolibrary.org/obo/HP_0000822%3E

While this:

http://aber-owl.net/api/dlquery?type=equivalent&query=%3Chttp://purl.obolibrary.org/obo/HP_0000822%3E&labels=false

will return nothing. It would also be nice if you could pass falsey values to e.g. ontology to run without that flag. This would make the client code for API interaction make more sense/ a bit nicer