GoMexSI / gomexsi-web

Explore Species Interactions in Gulf of Mexico with the GoMexSI webapp
http://gomexsi.tamucc.edu
3 stars 2 forks source link

Separate results into instances (i.e. predator specimen) #6

Closed reedhewitt closed 11 years ago

reedhewitt commented 11 years ago

Currently, the prey and predator results are simply an aggregate list and are not grouped into separate instances. Each subject should contain:

– One "preyInstances" array with one or more instance objects, which in turn contain one "prey" array that lists the prey for that specific instance.

– One "predInstances" array with one or more instance objects, which in turn contain one "pred" array that lists the predators for that specific instance.

If there are no prey, then preyInstances should be an empty array. If there are no predators, then predInstances should be an empty array.

jhpoelen commented 11 years ago

Hey Reed/ Michael,

I've just added a first pass at separating our the instances or observations of specific trophic interactions.

@MikeCasavecchia please let me know if this format works for you. I do realize its a little different than what we first talked about. Reason for changing it is mainly the easy of implementation and consistency of REST api. Happy to change it if you have any issues with it. Let me know if you need help implementing mock / rest php service.

Here's two examples:

Find all observations/ instances of prey that were eaten by Ariopsis felis: http://46.4.36.142:8080/predator/Ariopsis%20felis/listPreyObservations/

Find all observations for predators eating Ariopsis felis: http://46.4.36.142:8080/prey/Ariopsis%20felis/listPredatorObservations/

Hope this helps, -jorrit

jsimons9 commented 11 years ago

Hey Jorrit,

Just took a look at the outputs of those two searches. I would be interested to know the source of the second one as Lagodon rhomboides eating Ariopsis felis is a little suspect, unless it was an egg, larva, or juvenile. I am assuming at some point the life history stage will be included. And of course, the reference tag will be needed at some point also, so we can check on these kinds of suspect data. All in time, of course. ☺

Thanks,

Jim

From: jhpoelen [mailto:notifications@github.com] Sent: Friday, April 05, 2013 3:47 PM To: jhpoelen/gomexsi Subject: Re: [gomexsi] Separate results into instances (#6)

Hey Reed/ Michael,

I've just added a first pass at separating our the instances or observations of specific trophic interactions.

@MikeCasavecchiahttps://github.com/MikeCasavecchia please let me know if this format works for you. I do realize its a little different than what we first talked about. Reason for changing it is mainly the easy of implementation and consistency of REST api. Happy to change it if you have any issues with it. Let me know if you need help implementing mock / rest php service.

Here's two examples:

Find all observations/ instances of prey that were eaten by Ariopsis felis: http://46.4.36.142:8080/predator/Ariopsis%20felis/listPreyObservations/

Find all observations for predators eating Ariopsis felis: http://46.4.36.142:8080/prey/Ariopsis%20felis/listPredatorObservations/

Hope this helps, -jorrit

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-15979860.

jhpoelen commented 11 years ago

Great that you found suspicous data! This tells me that you have easy access to the data and that the data is easy to understand.

The source of the data is Senol Akin. You should be able to find the original in https://github.com/jhpoelen/eol-globi-data/tree/master/eol-globi-data-tool/src/main/resources/org/eol/globi/data/akin . I've added the contributor name to the rest service. Also, I've opened an issue on including the life stage in the search result as an issue https://github.com/jhpoelen/gomexsi/issues/8 .

Please let me know is this covers your concerns.

thx, -jorrit

On Apr 5, 2013, at 2:02 PM, James Simons wrote:

Hey Jorrit,

Just took a look at the outputs of those two searches. I would be interested to know the source of the second one as Lagodon rhomboides eating Ariopsis felis is a little suspect, unless it was an egg, larva, or juvenile. I am assuming at some point the life history stage will be included. And of course, the reference tag will be needed at some point also, so we can check on these kinds of suspect data. All in time, of course. ☺

Thanks,

Jim

From: jhpoelen [mailto:notifications@github.com] Sent: Friday, April 05, 2013 3:47 PM To: jhpoelen/gomexsi Subject: Re: [gomexsi] Separate results into instances (#6)

Hey Reed/ Michael,

I've just added a first pass at separating our the instances or observations of specific trophic interactions.

@MikeCasavecchiahttps://github.com/MikeCasavecchia please let me know if this format works for you. I do realize its a little different than what we first talked about. Reason for changing it is mainly the easy of implementation and consistency of REST api. Happy to change it if you have any issues with it. Let me know if you need help implementing mock / rest php service.

Here's two examples:

Find all observations/ instances of prey that were eaten by Ariopsis felis: http://46.4.36.142:8080/predator/Ariopsis%20felis/listPreyObservations/

Find all observations for predators eating Ariopsis felis: http://46.4.36.142:8080/prey/Ariopsis%20felis/listPredatorObservations/

Hope this helps, -jorrit

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-15979860. — Reply to this email directly or view it on GitHub.

jsimons9 commented 11 years ago

Yes it does. Thanks!!

Jim

From: jhpoelen [mailto:notifications@github.com] Sent: Friday, April 05, 2013 4:22 PM To: jhpoelen/gomexsi Cc: Simons, James Subject: Re: [gomexsi] Separate results into instances (#6)

Great that you found suspicous data! This tells me that you have easy access to the data and that the data is easy to understand.

The source of the data is Senol Akin. You should be able to find the original in https://github.com/jhpoelen/eol-globi-data/tree/master/eol-globi-data-tool/src/main/resources/org/eol/globi/data/akin . I've added the contributor name to the rest service. Also, I've opened an issue on including the life stage in the search result as an issue https://github.com/jhpoelen/gomexsi/issues/8 .

Please let me know is this covers your concerns.

thx, -jorrit

On Apr 5, 2013, at 2:02 PM, James Simons wrote:

Hey Jorrit,

Just took a look at the outputs of those two searches. I would be interested to know the source of the second one as Lagodon rhomboides eating Ariopsis felis is a little suspect, unless it was an egg, larva, or juvenile. I am assuming at some point the life history stage will be included. And of course, the reference tag will be needed at some point also, so we can check on these kinds of suspect data. All in time, of course. ☺

Thanks,

Jim

From: jhpoelen [mailto:notifications@github.com] Sent: Friday, April 05, 2013 3:47 PM To: jhpoelen/gomexsi Subject: Re: [gomexsi] Separate results into instances (#6)

Hey Reed/ Michael,

I've just added a first pass at separating our the instances or observations of specific trophic interactions.

@MikeCasavecchiahttps://github.com/MikeCasavecchia please let me know if this format works for you. I do realize its a little different than what we first talked about. Reason for changing it is mainly the easy of implementation and consistency of REST api. Happy to change it if you have any issues with it. Let me know if you need help implementing mock / rest php service.

Here's two examples:

Find all observations/ instances of prey that were eaten by Ariopsis felis: http://46.4.36.142:8080/predator/Ariopsis%20felis/listPreyObservations/

Find all observations for predators eating Ariopsis felis: http://46.4.36.142:8080/prey/Ariopsis%20felis/listPredatorObservations/

Hope this helps, -jorrit

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-15979860. — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-15981510.

jhpoelen commented 11 years ago

Great! Please confirm that the reported predator - prey in Akin dataset is actually what you expect, namely Lagodon rhomboides feeding on Ariopsis felis in early life stage.

On Apr 5, 2013, at 2:26 PM, James Simons wrote:

Yes it does. Thanks!!

Jim

From: jhpoelen [mailto:notifications@github.com] Sent: Friday, April 05, 2013 4:22 PM To: jhpoelen/gomexsi Cc: Simons, James Subject: Re: [gomexsi] Separate results into instances (#6)

Great that you found suspicous data! This tells me that you have easy access to the data and that the data is easy to understand.

The source of the data is Senol Akin. You should be able to find the original in https://github.com/jhpoelen/eol-globi-data/tree/master/eol-globi-data-tool/src/main/resources/org/eol/globi/data/akin . I've added the contributor name to the rest service. Also, I've opened an issue on including the life stage in the search result as an issue https://github.com/jhpoelen/gomexsi/issues/8 .

Please let me know is this covers your concerns.

thx, -jorrit

On Apr 5, 2013, at 2:02 PM, James Simons wrote:

Hey Jorrit,

Just took a look at the outputs of those two searches. I would be interested to know the source of the second one as Lagodon rhomboides eating Ariopsis felis is a little suspect, unless it was an egg, larva, or juvenile. I am assuming at some point the life history stage will be included. And of course, the reference tag will be needed at some point also, so we can check on these kinds of suspect data. All in time, of course. ☺

Thanks,

Jim

From: jhpoelen [mailto:notifications@github.com] Sent: Friday, April 05, 2013 3:47 PM To: jhpoelen/gomexsi Subject: Re: [gomexsi] Separate results into instances (#6)

Hey Reed/ Michael,

I've just added a first pass at separating our the instances or observations of specific trophic interactions.

@MikeCasavecchiahttps://github.com/MikeCasavecchia please let me know if this format works for you. I do realize its a little different than what we first talked about. Reason for changing it is mainly the easy of implementation and consistency of REST api. Happy to change it if you have any issues with it. Let me know if you need help implementing mock / rest php service.

Here's two examples:

Find all observations/ instances of prey that were eaten by Ariopsis felis: http://46.4.36.142:8080/predator/Ariopsis%20felis/listPreyObservations/

Find all observations for predators eating Ariopsis felis: http://46.4.36.142:8080/prey/Ariopsis%20felis/listPredatorObservations/

Hope this helps, -jorrit

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-15979860. — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-15981510. — Reply to this email directly or view it on GitHub.

jsimons9 commented 11 years ago

Hi Jorrit,

I did indeed verify that the data says that L. rhomboides ate an A. felis, but since the Akin data does not indicate life stage there is no way to absolutely know how big it was, although one has to conjecture it must have been a fairly small A felis (they have nasty spines and nothing in its right mind would eat a large one – and physically, a L rhomboides could not eat a large A felis).

Jim

From: jhpoelen [mailto:notifications@github.com] Sent: Friday, April 05, 2013 4:22 PM To: jhpoelen/gomexsi Cc: Simons, James Subject: Re: [gomexsi] Separate results into instances (#6)

Great that you found suspicous data! This tells me that you have easy access to the data and that the data is easy to understand.

The source of the data is Senol Akin. You should be able to find the original in https://github.com/jhpoelen/eol-globi-data/tree/master/eol-globi-data-tool/src/main/resources/org/eol/globi/data/akin . I've added the contributor name to the rest service. Also, I've opened an issue on including the life stage in the search result as an issue https://github.com/jhpoelen/gomexsi/issues/8 .

Please let me know is this covers your concerns.

thx, -jorrit

On Apr 5, 2013, at 2:02 PM, James Simons wrote:

Hey Jorrit,

Just took a look at the outputs of those two searches. I would be interested to know the source of the second one as Lagodon rhomboides eating Ariopsis felis is a little suspect, unless it was an egg, larva, or juvenile. I am assuming at some point the life history stage will be included. And of course, the reference tag will be needed at some point also, so we can check on these kinds of suspect data. All in time, of course. ☺

Thanks,

Jim

From: jhpoelen [mailto:notifications@github.com] Sent: Friday, April 05, 2013 3:47 PM To: jhpoelen/gomexsi Subject: Re: [gomexsi] Separate results into instances (#6)

Hey Reed/ Michael,

I've just added a first pass at separating our the instances or observations of specific trophic interactions.

@MikeCasavecchiahttps://github.com/MikeCasavecchia please let me know if this format works for you. I do realize its a little different than what we first talked about. Reason for changing it is mainly the easy of implementation and consistency of REST api. Happy to change it if you have any issues with it. Let me know if you need help implementing mock / rest php service.

Here's two examples:

Find all observations/ instances of prey that were eaten by Ariopsis felis: http://46.4.36.142:8080/predator/Ariopsis%20felis/listPreyObservations/

Find all observations for predators eating Ariopsis felis: http://46.4.36.142:8080/prey/Ariopsis%20felis/listPredatorObservations/

Hope this helps, -jorrit

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-15979860. — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-15981510.

jhpoelen commented 11 years ago

Thank for confirming.

Just curious - How do you know that A. felis is Ariopsis felis and not Arius felis ?

thx, -jorrit

On Apr 5, 2013, at 2:49 PM, James Simons wrote:

Hi Jorrit,

I did indeed verify that the data says that L. rhomboides ate an A. felis, but since the Akin data does not indicate life stage there is no way to absolutely know how big it was, although one has to conjecture it must have been a fairly small A felis (they have nasty spines and nothing in its right mind would eat a large one – and physically, a L rhomboides could not eat a large A felis).

Jim

From: jhpoelen [mailto:notifications@github.com] Sent: Friday, April 05, 2013 4:22 PM To: jhpoelen/gomexsi Cc: Simons, James Subject: Re: [gomexsi] Separate results into instances (#6)

Great that you found suspicous data! This tells me that you have easy access to the data and that the data is easy to understand.

The source of the data is Senol Akin. You should be able to find the original in https://github.com/jhpoelen/eol-globi-data/tree/master/eol-globi-data-tool/src/main/resources/org/eol/globi/data/akin . I've added the contributor name to the rest service. Also, I've opened an issue on including the life stage in the search result as an issue https://github.com/jhpoelen/gomexsi/issues/8 .

Please let me know is this covers your concerns.

thx, -jorrit

On Apr 5, 2013, at 2:02 PM, James Simons wrote:

Hey Jorrit,

Just took a look at the outputs of those two searches. I would be interested to know the source of the second one as Lagodon rhomboides eating Ariopsis felis is a little suspect, unless it was an egg, larva, or juvenile. I am assuming at some point the life history stage will be included. And of course, the reference tag will be needed at some point also, so we can check on these kinds of suspect data. All in time, of course. ☺

Thanks,

Jim

From: jhpoelen [mailto:notifications@github.com] Sent: Friday, April 05, 2013 3:47 PM To: jhpoelen/gomexsi Subject: Re: [gomexsi] Separate results into instances (#6)

Hey Reed/ Michael,

I've just added a first pass at separating our the instances or observations of specific trophic interactions.

@MikeCasavecchiahttps://github.com/MikeCasavecchia please let me know if this format works for you. I do realize its a little different than what we first talked about. Reason for changing it is mainly the easy of implementation and consistency of REST api. Happy to change it if you have any issues with it. Let me know if you need help implementing mock / rest php service.

Here's two examples:

Find all observations/ instances of prey that were eaten by Ariopsis felis: http://46.4.36.142:8080/predator/Ariopsis%20felis/listPreyObservations/

Find all observations for predators eating Ariopsis felis: http://46.4.36.142:8080/prey/Ariopsis%20felis/listPredatorObservations/

Hope this helps, -jorrit

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-15979860. — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-15981510. — Reply to this email directly or view it on GitHub.

jsimons9 commented 11 years ago

They are the same species.

Jim

From: jhpoelen [mailto:notifications@github.com] Sent: Friday, April 05, 2013 5:03 PM To: jhpoelen/gomexsi Cc: Simons, James Subject: Re: [gomexsi] Separate results into instances (#6)

Thank for confirming.

Just curious - How do you know that A. felis is Ariopsis felis and not Arius felis ?

thx, -jorrit

On Apr 5, 2013, at 2:49 PM, James Simons wrote:

Hi Jorrit,

I did indeed verify that the data says that L. rhomboides ate an A. felis, but since the Akin data does not indicate life stage there is no way to absolutely know how big it was, although one has to conjecture it must have been a fairly small A felis (they have nasty spines and nothing in its right mind would eat a large one – and physically, a L rhomboides could not eat a large A felis).

Jim

From: jhpoelen [mailto:notifications@github.com] Sent: Friday, April 05, 2013 4:22 PM To: jhpoelen/gomexsi Cc: Simons, James Subject: Re: [gomexsi] Separate results into instances (#6)

Great that you found suspicous data! This tells me that you have easy access to the data and that the data is easy to understand.

The source of the data is Senol Akin. You should be able to find the original in https://github.com/jhpoelen/eol-globi-data/tree/master/eol-globi-data-tool/src/main/resources/org/eol/globi/data/akin . I've added the contributor name to the rest service. Also, I've opened an issue on including the life stage in the search result as an issue https://github.com/jhpoelen/gomexsi/issues/8 .

Please let me know is this covers your concerns.

thx, -jorrit

On Apr 5, 2013, at 2:02 PM, James Simons wrote:

Hey Jorrit,

Just took a look at the outputs of those two searches. I would be interested to know the source of the second one as Lagodon rhomboides eating Ariopsis felis is a little suspect, unless it was an egg, larva, or juvenile. I am assuming at some point the life history stage will be included. And of course, the reference tag will be needed at some point also, so we can check on these kinds of suspect data. All in time, of course. ☺

Thanks,

Jim

From: jhpoelen [mailto:notifications@github.com] Sent: Friday, April 05, 2013 3:47 PM To: jhpoelen/gomexsi Subject: Re: [gomexsi] Separate results into instances (#6)

Hey Reed/ Michael,

I've just added a first pass at separating our the instances or observations of specific trophic interactions.

@MikeCasavecchiahttps://github.com/MikeCasavecchia please let me know if this format works for you. I do realize its a little different than what we first talked about. Reason for changing it is mainly the easy of implementation and consistency of REST api. Happy to change it if you have any issues with it. Let me know if you need help implementing mock / rest php service.

Here's two examples:

Find all observations/ instances of prey that were eaten by Ariopsis felis: http://46.4.36.142:8080/predator/Ariopsis%20felis/listPreyObservations/

Find all observations for predators eating Ariopsis felis: http://46.4.36.142:8080/prey/Ariopsis%20felis/listPredatorObservations/

Hope this helps, -jorrit

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-15979860. — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-15981510. — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-15983265.

jhpoelen commented 11 years ago

Cool!

Which one is the preferred name?

On Apr 5, 2013, at 3:30 PM, James Simons wrote:

They are the same species.

Jim

From: jhpoelen [mailto:notifications@github.com] Sent: Friday, April 05, 2013 5:03 PM To: jhpoelen/gomexsi Cc: Simons, James Subject: Re: [gomexsi] Separate results into instances (#6)

Thank for confirming.

Just curious - How do you know that A. felis is Ariopsis felis and not Arius felis ?

thx, -jorrit

On Apr 5, 2013, at 2:49 PM, James Simons wrote:

Hi Jorrit,

I did indeed verify that the data says that L. rhomboides ate an A. felis, but since the Akin data does not indicate life stage there is no way to absolutely know how big it was, although one has to conjecture it must have been a fairly small A felis (they have nasty spines and nothing in its right mind would eat a large one – and physically, a L rhomboides could not eat a large A felis).

Jim

From: jhpoelen [mailto:notifications@github.com] Sent: Friday, April 05, 2013 4:22 PM To: jhpoelen/gomexsi Cc: Simons, James Subject: Re: [gomexsi] Separate results into instances (#6)

Great that you found suspicous data! This tells me that you have easy access to the data and that the data is easy to understand.

The source of the data is Senol Akin. You should be able to find the original in https://github.com/jhpoelen/eol-globi-data/tree/master/eol-globi-data-tool/src/main/resources/org/eol/globi/data/akin . I've added the contributor name to the rest service. Also, I've opened an issue on including the life stage in the search result as an issue https://github.com/jhpoelen/gomexsi/issues/8 .

Please let me know is this covers your concerns.

thx, -jorrit

On Apr 5, 2013, at 2:02 PM, James Simons wrote:

Hey Jorrit,

Just took a look at the outputs of those two searches. I would be interested to know the source of the second one as Lagodon rhomboides eating Ariopsis felis is a little suspect, unless it was an egg, larva, or juvenile. I am assuming at some point the life history stage will be included. And of course, the reference tag will be needed at some point also, so we can check on these kinds of suspect data. All in time, of course. ☺

Thanks,

Jim

From: jhpoelen [mailto:notifications@github.com] Sent: Friday, April 05, 2013 3:47 PM To: jhpoelen/gomexsi Subject: Re: [gomexsi] Separate results into instances (#6)

Hey Reed/ Michael,

I've just added a first pass at separating our the instances or observations of specific trophic interactions.

@MikeCasavecchiahttps://github.com/MikeCasavecchia please let me know if this format works for you. I do realize its a little different than what we first talked about. Reason for changing it is mainly the easy of implementation and consistency of REST api. Happy to change it if you have any issues with it. Let me know if you need help implementing mock / rest php service.

Here's two examples:

Find all observations/ instances of prey that were eaten by Ariopsis felis: http://46.4.36.142:8080/predator/Ariopsis%20felis/listPreyObservations/

Find all observations for predators eating Ariopsis felis: http://46.4.36.142:8080/prey/Ariopsis%20felis/listPredatorObservations/

Hope this helps, -jorrit

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-15979860. — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-15981510. — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-15983265. — Reply to this email directly or view it on GitHub.

MikeCasavecchia commented 11 years ago

Hello,

This format will work fine. It is a bit repetitive in the sense that obviously the prey of a singular observation of predator are all going to have the same location. But that is not a big deal with me if it does not cause any complications on your end. It seems fairly reasonable though, I will go ahead and implement this if that is good with everybody.

Thanks,

Michael Casavecchia

On Fri, Apr 5, 2013 at 10:47 AM, jhpoelen notifications@github.com wrote:

Hey Reed/ Michael,

I've just added a first pass at separating our the instances or observations of specific trophic interactions.

@MikeCasavecchia https://github.com/MikeCasavecchia please let me know if this format works for you. I do realize its a little different than what we first talked about. Reason for changing it is mainly the easy of implementation and consistency of REST api. Happy to change it if you have any issues with it. Let me know if you need help implementing mock / rest php service.

Here's two examples:

Find all observations/ instances of prey that were eaten by Ariopsis felis: http://46.4.36.142:8080/predator/Ariopsis%20felis/listPreyObservations/

Find all observations for predators eating Ariopsis felis: http://46.4.36.142:8080/prey/Ariopsis%20felis/listPredatorObservations/

Hope this helps, -jorrit

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-15979860 .

jhpoelen commented 11 years ago

Cool , curious to see the result. Let me know if it causes any issues, I'd be happy to change it.

thx, -jorrit On Apr 5, 2013, at 5:05 PM, MikeCasavecchia wrote:

Hello,

This format will work fine. It is a bit repetitive in the sense that obviously the prey of a singular observation of predator are all going to have the same location. But that is not a big deal with me if it does not cause any complications on your end. It seems fairly reasonable though, I will go ahead and implement this if that is good with everybody.

Thanks,

Michael Casavecchia

On Fri, Apr 5, 2013 at 10:47 AM, jhpoelen notifications@github.com wrote:

Hey Reed/ Michael,

I've just added a first pass at separating our the instances or observations of specific trophic interactions.

@MikeCasavecchia https://github.com/MikeCasavecchia please let me know if this format works for you. I do realize its a little different than what we first talked about. Reason for changing it is mainly the easy of implementation and consistency of REST api. Happy to change it if you have any issues with it. Let me know if you need help implementing mock / rest php service.

Here's two examples:

Find all observations/ instances of prey that were eaten by Ariopsis felis: http://46.4.36.142:8080/predator/Ariopsis%20felis/listPreyObservations/

Find all observations for predators eating Ariopsis felis: http://46.4.36.142:8080/prey/Ariopsis%20felis/listPredatorObservations/

Hope this helps, -jorrit

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-15979860 .

— Reply to this email directly or view it on GitHub.

jsimons9 commented 11 years ago

Oh, Ariopsis felis is now the correct name, Arius felis is an old name.

Jim

From: jhpoelen [mailto:notifications@github.com] Sent: Friday, April 05, 2013 6:34 PM To: jhpoelen/gomexsi Cc: Simons, James Subject: Re: [gomexsi] Separate results into instances (#6)

Cool!

Which one is the preferred name?

On Apr 5, 2013, at 3:30 PM, James Simons wrote:

They are the same species.

Jim

From: jhpoelen [mailto:notifications@github.com] Sent: Friday, April 05, 2013 5:03 PM To: jhpoelen/gomexsi Cc: Simons, James Subject: Re: [gomexsi] Separate results into instances (#6)

Thank for confirming.

Just curious - How do you know that A. felis is Ariopsis felis and not Arius felis ?

thx, -jorrit

On Apr 5, 2013, at 2:49 PM, James Simons wrote:

Hi Jorrit,

I did indeed verify that the data says that L. rhomboides ate an A. felis, but since the Akin data does not indicate life stage there is no way to absolutely know how big it was, although one has to conjecture it must have been a fairly small A felis (they have nasty spines and nothing in its right mind would eat a large one – and physically, a L rhomboides could not eat a large A felis).

Jim

From: jhpoelen [mailto:notifications@github.com] Sent: Friday, April 05, 2013 4:22 PM To: jhpoelen/gomexsi Cc: Simons, James Subject: Re: [gomexsi] Separate results into instances (#6)

Great that you found suspicous data! This tells me that you have easy access to the data and that the data is easy to understand.

The source of the data is Senol Akin. You should be able to find the original in https://github.com/jhpoelen/eol-globi-data/tree/master/eol-globi-data-tool/src/main/resources/org/eol/globi/data/akin . I've added the contributor name to the rest service. Also, I've opened an issue on including the life stage in the search result as an issue https://github.com/jhpoelen/gomexsi/issues/8 .

Please let me know is this covers your concerns.

thx, -jorrit

On Apr 5, 2013, at 2:02 PM, James Simons wrote:

Hey Jorrit,

Just took a look at the outputs of those two searches. I would be interested to know the source of the second one as Lagodon rhomboides eating Ariopsis felis is a little suspect, unless it was an egg, larva, or juvenile. I am assuming at some point the life history stage will be included. And of course, the reference tag will be needed at some point also, so we can check on these kinds of suspect data. All in time, of course. ☺

Thanks,

Jim

From: jhpoelen [mailto:notifications@github.com] Sent: Friday, April 05, 2013 3:47 PM To: jhpoelen/gomexsi Subject: Re: [gomexsi] Separate results into instances (#6)

Hey Reed/ Michael,

I've just added a first pass at separating our the instances or observations of specific trophic interactions.

@MikeCasavecchiahttps://github.com/MikeCasavecchia please let me know if this format works for you. I do realize its a little different than what we first talked about. Reason for changing it is mainly the easy of implementation and consistency of REST api. Happy to change it if you have any issues with it. Let me know if you need help implementing mock / rest php service.

Here's two examples:

Find all observations/ instances of prey that were eaten by Ariopsis felis: http://46.4.36.142:8080/predator/Ariopsis%20felis/listPreyObservations/

Find all observations for predators eating Ariopsis felis: http://46.4.36.142:8080/prey/Ariopsis%20felis/listPredatorObservations/

Hope this helps, -jorrit

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-15979860. — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-15981510. — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-15983265. — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-15986390.

jhpoelen commented 11 years ago

@reedhewitt @MikeCasavecchia

Can we close this issue now?

reedhewitt commented 11 years ago

The prey results have been separated into instances, but not the predators. I'll leave this open for now.

Reed

jhpoelen commented 11 years ago

@MikeCasavecchia curious to hear whether you need help on resolving this issue.

MikeCasavecchia commented 11 years ago

I am actually going to tackle this problem today

On Wed, May 1, 2013 at 8:58 AM, jhpoelen notifications@github.com wrote:

@MikeCasavecchia https://github.com/MikeCasavecchia curious to hear whether you need help on resolving this issue.

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-17299293 .

jhpoelen commented 11 years ago

sweeeet!

MikeCasavecchia commented 11 years ago

The predators have now been separated into instances. You should also be able to filter by predator and prey at the same time on a singular species.

@reedhewitt can you update and let me know if this works on your end. findPredators = on is the post variable I am looking for on my end. If you send: findPredators = on and findPrey = on Then you should get a JSON object with both prey and predators in it.

Thanks

reedhewitt commented 11 years ago

@MikeCasavecchia - The returned data looks good, but there's a problem that prevents it from showing on the page. The front-end is expecting a property called predInstances, but the actual name is predatorInstances. I would like to keep it as predInstances because the prefix "pred" is used in many places in a modular and programatic way. The same goes for the sub-property "predator" which the frontend will expect to be simply "pred". Would you mind changing those property names?

predatorInstances -> predInstances predator -> pred

Thanks, Reed

jhpoelen commented 11 years ago

Sounds like an easy fix. @MikeCasavecchia please close this issue when you fix this.

MikeCasavecchia commented 11 years ago

Sure

On Mon, May 6, 2013 at 9:20 AM, jhpoelen notifications@github.com wrote:

Sounds like an easy fix. @MikeCasavecchiahttps://github.com/MikeCasavecchiaplease close this issue when you fix this.

— Reply to this email directly or view it on GitHubhttps://github.com/jhpoelen/gomexsi/issues/6#issuecomment-17502027 .

MikeCasavecchia commented 11 years ago

Changed the code to match Reed's request