Scaling API-first – The story of a global engineering organization
Ag infra pilot_programmatic_access_jkklapp
1. Open Data in Agriculture
Hands-on with data infrastructures that
can power your agricultural data
products
12/12/2013
Athens, Greece
Supported by EU projects
3. Intro
• agINFRA provides a set of high level APIs to
access the power of the infrastructure.
– http://agro.ipb.ac.rs/
• Available dataset and service catalogs to
‘discover’ apps and data
– A python wrapper to your convenience
– https://bitbucket.org/jkklapp/agcatalogs/
• Please download and try it out
Slide 3 of 63
4. Objectives
• This hands-on pilot aims to provide a view of the
programmatic access to the infrastructure.
– Access and experimentation of the APIs: tools to ingest
and retrieve data, data processing.
– Access and experimentation with catalogs: descriptions of
data and services that makes them ‘actionable’ through a
python script.
High level APIs
Dataset catalog
Service catalog
Slide 4 of 63
5. Proposal (to be done by you)
• 1) Discover and get some data (using
data catalog)
• 2) Discover services (using service
catalog)
• 3) Learn a bit from some service (In the
API)
• 4) Invoke a service over a dataset
• 5) Repeat, combine, play
Slide 5 of 63
6. Example of proposal
• Pseudocode for a Python script
–Get a random dataset containing
only records in english language
–Download dataset
–Download agKEA software package
–Run execute agKEA on the dataset
Slide 6 of 63