Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[bioontology-support] Different page sizes give (after page collection) different results

Paul R Alexander palexander at stanford.edu
Mon Oct 27 16:42:44 PDT 2014


Aaron,

In your first two examples, you are getting the same page twice. I don't know if that error extends to your code, but maybe that's the problem?

When I fix that and get results for all four URLs, I get the same count: 6682. I can't reproduce the bad behavior you describe.

Paul


> On Oct 22, 2014, at 8:37 AM, Aaron Baker <ab4 at bcm.edu> wrote:
> 
> Hi,
> 
> I noticed the following behavior which I thought was strange and that I should bring to your attention. As noted in the subject, page sizes affects the results of the requests. Consider the number of terms returned in the "collection" key of the JSON envelope you provide for the following two examples.
> 
> Example 1:
> 
> http://data.bioontology.org/ontologies/NCIT/classes/http%3A%2F%2Fncicb.nci.nih.gov%2Fxml%2Fowl%2FEVS%2FThesaurus.owl%23C12219/descendants?apikey={apikey}&format=json&include=prefLabel%2Cdefinition%2Csynonym&include_context=false&include_links=true&page=2&pagesize=5000
> 
> http://data.bioontology.org/ontologies/NCIT/classes/http%3A%2F%2Fncicb.nci.nih.gov%2Fxml%2Fowl%2FEVS%2FThesaurus.owl%23C12219/descendants?apikey={apikey}&format=json&include=prefLabel%2Cdefinition%2Csynonym&include_context=false&include_links=true&page=2&pagesize=5000
> 
> Example 2:
> 
> http://data.bioontology.org/ontologies/NCIT/classes/http%3A%2F%2Fncicb.nci.nih.gov%2Fxml%2Fowl%2FEVS%2FThesaurus.owl%23C12219/descendants?apikey={apikey}&format=json&include=prefLabel%2Cdefinition%2Csynonym&include_context=false&include_links=true&page=1&pagesize=4999
> 
> http://data.bioontology.org/ontologies/NCIT/classes/http%3A%2F%2Fncicb.nci.nih.gov%2Fxml%2Fowl%2FEVS%2FThesaurus.owl%23C12219/descendants?apikey={apikey}&format=json&include=prefLabel%2Cdefinition%2Csynonym&include_context=false&include_links=true&page=2&pagesize=4999
> 
> Adding up the number of terms in each url's "collection", in example 1, the number of terms is 5000 + 0. In example 2, the number of terms is 4999 + 1683. This behavior has persisted for a few hours now (I tried last night with the same URLs, and again this morning).
> 
> Is there an issue with using page size 5000? Please let me know if I should modify my request parameters.
> 
> Thanks,
> Aaron
> _______________________________________________
> bioontology-support mailing list
> bioontology-support at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/bioontology-support




More information about the bioontology-support mailing list