[Biogeosdi] GBIF REST services
Hey guys,
Seems that the GBIF REST services have changed since we coded... the GbifOccurrenceSax.php class that Dave programmed is hadling manually namespaces expecting things like "dwc:ScientificName". In the response from the REST services now you will get things like "tn:nameComplete" so...
Another change on the format that the data is comming and another crash on the application...
What do you think? Should we update this to the new format? or we make a note on the report and explain that because people keep changing the XML format they are using behind their services, without changing the semantics, it is a pain for applications? Aghh. There should be like in Google Maps a parameter specifying which version you wanna have returned to keep things stable.
In any case I could not resist and updated the GbifOccurrenceSax class to use the new format....
Still there is no way to tell GBIF only to return occurrences with coordinates. I will ask Donald.
Cheers.
Javier.
Hi Javi
Are you using the new data.gbif.org url I gave you yesterday? This is going to be the live site (Donald asked that we dont hammer it until after July 4 though!!) so I guess that we should adapt any parsing to meet the formatting of what is being returned there. As an aside Donald mentioned that the data.gbif.org rest portal now has 65% of species from original portal so the rest service is becoming more and more useable from a species coverage point of view...
Regards
Tim
2007/6/26, Javier de la Torre jatorre@gmail.com:
Hey guys,
Seems that the GBIF REST services have changed since we coded... the GbifOccurrenceSax.php class that Dave programmed is hadling manually namespaces expecting things like "dwc:ScientificName". In the response from the REST services now you will get things like "tn:nameComplete" so...
Another change on the format that the data is comming and another crash on the application...
What do you think? Should we update this to the new format? or we make a note on the report and explain that because people keep changing the XML format they are using behind their services, without changing the semantics, it is a pain for applications? Aghh. There should be like in Google Maps a parameter specifying which version you wanna have returned to keep things stable.
In any case I could not resist and updated the GbifOccurrenceSax class to use the new format....
Still there is no way to tell GBIF only to return occurrences with coordinates. I will ask Donald.
Cheers.
Javier. _______________________________________________ biogeosdi mailing list biogeosdi@lists.tdwg.org http://lists.tdwg.org/mailman/listinfo/biogeosdi
Hi Tim,
Yes. I changed the code to use the new service.
Cheers.
On 26/06/2007, at 18:57, Tim Sutton wrote:
Hi Javi
Are you using the new data.gbif.org url I gave you yesterday? This is going to be the live site (Donald asked that we dont hammer it until after July 4 though!!) so I guess that we should adapt any parsing to meet the formatting of what is being returned there. As an aside Donald mentioned that the data.gbif.org rest portal now has 65% of species from original portal so the rest service is becoming more and more useable from a species coverage point of view...
Regards
Tim
2007/6/26, Javier de la Torre jatorre@gmail.com:
Hey guys,
Seems that the GBIF REST services have changed since we coded... the GbifOccurrenceSax.php class that Dave programmed is hadling manually namespaces expecting things like "dwc:ScientificName". In the response from the REST services now you will get things like "tn:nameComplete" so...
Another change on the format that the data is comming and another crash on the application...
What do you think? Should we update this to the new format? or we make a note on the report and explain that because people keep changing the XML format they are using behind their services, without changing the semantics, it is a pain for applications? Aghh. There should be like in Google Maps a parameter specifying which version you wanna have returned to keep things stable.
In any case I could not resist and updated the GbifOccurrenceSax class to use the new format....
Still there is no way to tell GBIF only to return occurrences with coordinates. I will ask Donald.
Cheers.
Javier. _______________________________________________ biogeosdi mailing list biogeosdi@lists.tdwg.org http://lists.tdwg.org/mailman/listinfo/biogeosdi
-- Tim Sutton QGIS Project Steering Committee Member - Release Manager Visit http://qgis.org for a great open source GIS openModeller Desktop Developer Visit http://openModeller.sf.net for a great open source ecological niche modelling tool Home Page: http://tim.linfiniti.com Skype: timlinux Irc: timlinux on #qgis at freenode.net
participants (2)
-
Javier de la Torre
-
Tim Sutton