Search Mailing List Archives
[bioontology-support] NCBO tree widget
leinfelder at nceas.ucsb.edu
Tue Oct 25 16:28:00 PDT 2016
Thanks for tracking that down. It's true that this ontology has many children under "Measurement Type". I added a "pagesize" property to the ncbo tree widget OPTIONS and am including that with requests to the NCBO rest endpoints. I get many more concepts back (of course it takes longer to load them all) now.
I'd be happy to help incorporate this change into the existing jquery.ncbo.tree-2.0.2.js library so that others can simply specify a pagesize of their liking when initializing the tree with options.
I also opted to retrieve concept definitions so that my tree can show them when user's hover over a concept in the tree, but that's a little more specific to my application's use of Bootstrap.
Just let me know what would be helpful.
> On Oct 24, 2016, at 9:42 AM, Jennifer Leigh Vendetti <vendetti at stanford.edu> wrote:
> Hi Ben,
> We took a quick look at this. The BioPortal REST endpoint fetches class data in pages with a default size of 50. It looks like the Tree Widget is only displaying the first page of results. It wasn’t immediately obvious at first glance what’s gone wrong with the widget. I've created an issue in our tracker and we’ll take a closer look at this (NCBO-1828). Sincere apologies for this inconvenience.
> Kind regards,
>> On Oct 19, 2016, at 9:42 AM, Ben Leinfelder <leinfelder at nceas.ucsb.edu> wrote:
>> I've incorporated the tree widget into my web app but have noticed fewer classes appear than seen in the BioPortal interface.
>> I'm using the "Measurement Type" concept to investigate this:
>> Here is a JS fiddle to illustrate the issue as seen in our web app:
>> Can you help troubleshoot why we aren't seeing all the children of Measurement Type in our widget?
>> Thank you,
>> Ben Leinfelder
>> bioontology-support mailing list
>> bioontology-support at lists.stanford.edu
More information about the bioontology-support