of restful api s for recording
play

of Restful APIs for Recording Herd Data. Craig Vigors Irish Cattle - PowerPoint PPT Presentation

Data Collection Methods used in the BDGP and the Development of Restful APIs for Recording Herd Data. Craig Vigors Irish Cattle Breeding Federation Beef Data and Genomics Programme 6 year scheme approved by the European Commission


  1. Data Collection Methods used in the BDGP and the Development of Restful API’s for Recording Herd Data. Craig Vigors Irish Cattle Breeding Federation

  2. Beef Data and Genomics Programme  6 year scheme approved by the European Commission  Launched by the Department of Agriculture in 2015  Part of Ireland’s 2014 – 2020 Rural Development Programme  Goals: 1. Increase the Genetic Merit of the Suckler Herds 2. Reduce Greenhouse Gas Emissions of the Irish Beef Herds  Expanded in 2017

  3. Beef Data and Genomics Programme  6 Requirements 1. Record Calving Details 2. Complete Animal Surveys 3. Genotyping 4. Stock Bull and Female Replacement Strategy 5. Carbon Navigator 6. Training  23500 Participants  33% Online Users

  4. Paper Forms Information Collected Calf Dam  Sire  Docility  Calving Ease  Milk-ability  Birth Size  Departure Reason  Vigor (at 5 months) Stock Bull  Quality  Docility  Docility  Functionality  Scour  Departure  Pneumonia Reason

  5. Paper Forms Information Collected Calf Dam  Sire  Docility  Calving Ease  Milk-ability  Birth Size  Departure Reason  Vigor (at 5 months) Stock Bull  Quality  Docility  Docility  Functionality  Scour  Departure  Pneumonia Reason

  6. Paper Forms Information Collected Calf Dam  Sire  Docility  Calving Ease  Milk-ability  Birth Size  Departure Reason  Vigor (at 5 months) Stock Bull  Quality  Docility  Docility  Functionality  Scour  Departure  Pneumonia Reason

  7. Paper Forms Information Collected Calf Dam  Sire  Docility  Calving Ease  Milk-ability  Birth Size  Departure Reason  Vigor (at 5 months) Stock Bull  Quality  Docility  Docility  Functionality  Scour  Departure  Pneumonia Reason

  8. Paper Forms – Processing Dam  Docility  Milk-ability  Departure reason

  9. Paper Forms – Processing Dam  Docility  Milk-ability  Departure reason

  10. Web Application - Desktop

  11. Web Application - Desktop

  12. Web Application - Mobile

  13. Data Quality – Calf Docility Heritability Genetic correlation of 0.78 between two traits Farmer: 0.30 Technician: 0.22 Farmer has longer to observe the animal? Score Animals % of Total Score Animals % of Total Very Quiet 66144 12.2 Docile 15287 13.9 Quiet 219502 40.6 Restless 73835 67.3 Average 226709 41.8 Nervous 18880 17.2 Difficult 28337 5.2 Flighty / Wild 1503 1.4 Very Difficult 1553 0.3 Aggressive 144 0.1 Ross Evans (2012). The benefits of using farmer scored traits in beef genetic evaluations [PowerPoint slides]. Retrieved from http://www.icar.org/index.php/icar-meetings-news/38th-session-cork-ireland/

  14. API – Application Programming Interface

  15. Herd API’s  A set of web services available to software and sensor providers to provide data services to farmers.  REST/JSON  Smaller data transfer when compared to SOAP/XML  Easy to process (if HAL is used).  Flexible authentication using OAuth 2.0  Data access is controlled by limiting the scope

  16. Herd API’s – GET Insemination Example { "_links": { "self": { "href": "http://apitest.dev64.icbf.com/herd-fertility/insemination?start_date=01-Apr-17&page=1" }, "first": { "href": "http://apitest.dev64.icbf.com/herd-fertility/insemination?start_date=01-Apr-17" }, "last": { "href": "http://apitest.dev64.icbf.com/herd-fertility/insemination?start_date=01-Apr-17&page=1" } }, "_embedded": { "insemination": [ { "id": "1478411718", "animal_id": "IE123456790741", "activity_date": "03-APR-17", "activity_type": "AIN", "bull_used": "RUU", "editable": "UD", "_links": { "self": { "href": "http://apitest.dev64.icbf.com/herd-fertility/insemination/1478411718" } } } ] }, "page_count": 1, "page_size": 100, "total_items": 1, "page": 1 }

  17. Herd API Authentication – OAuth 2.0 www.icbf.com https:// 1. Login with ICBF credentials Resource Owner (Farmer ) 2. Receive Authorization Code ICBF Authorisation Server 3. Send Authorization Code 4. Receive Refresh and Access Tokens

  18. Herd API’s – Services Available Methods Available : GET (read) POST (create) PUT (update) DELETE Herd Details Evaluation Health • Animal Details • Beef • General Health • Dairy • Treatments Fertility Weight Veterinary • Heat • Insemination • Live Weight • Medicine • Pregnancy Diagnosis Lactation • Period

  19. Conclusion • High volume of data, slowly being replaced with new Paper technology • Will remain for the foreseeable future • Volume increasing over time to a point Web • Provides convenience and timeliness in recording Mobile • Further improvement of convenience and timeliness • Facilitates many data sources, e.g. sensors API • Devices that use the API need to be made available.

  20. Questions?

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend