The Waminals Project

1,060 views
967 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,060
On SlideShare
0
From Embeds
0
Number of Embeds
367
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

The Waminals Project

  1. 1. GAIA RESOURCES Waminals Species Databases, Mungeing, Maps and Drupal Kehan Harman Gaia Resources Andrew Rowe, Morgan Strong Western Australian MuseumPresented at Drupal WA Meetup, 2/10/2012
  2. 2. OVERVIEW● What do we have?● What do we want?● How do we get it?
  3. 3. WHAT DO WE HAVE? ● Collections
  4. 4. WHAT DO WE HAVE?● Data(bases)
  5. 5. ● Just like children Started out similar but grew up to be WHAT DO WE HAVE? ● totally different
  6. 6. WHAT DO WE HAVE?● Consultants● Curators● Knowledge
  7. 7. WHAT DO WE WANT? ● Data Available ● Be able to ● To the right identify species people ● Minimise ● Updated regularly duplication of ● Maps effort ● Related Species
  8. 8. HOW DO WE GET IT? ● Data exchange format ● DarwinCore – DublinCore for biology ● Global Initialitves ● Data Mungeing ● Pentaho Data Integration ● http://kettle.pentaho.com
  9. 9. Munge Munge Munge● Google Refine?● Pentaho ● Connect to SQL Server ● Transformations ● Validations
  10. 10. Munge Munge Munge● Google Refine?● Pentaho ● Connect to SQL Server ● Transformations ● Validations
  11. 11. HOW DO WE GET IT?● Drupal Modules ● Core – Fields ● Contrib – Drush, drush, drush – Features – Migrate – Geofield – Openlayers – Views – Rules – Flag – Display Suite
  12. 12. ID Tool ● Species Profiles in a node type ● Attribute field ● (hook_field_info) – Field Name – Field Value
  13. 13. Adding Value ● Collection is ● Curators check dynamic identifications ● Identifications ● Correct where change necessary ● Names change
  14. 14. Adding Value ● Node type for ● Geofield to store specimens spatial data ● Taxonomy for ● http://drupal.org/ names project/geofield
  15. 15. Migrations ● Base class to define a migration ● Run Pentaho – exec(); – escapeshellcmd(); ● Import Names ● Import Specimens
  16. 16. Migrations● Dynamic Migration ● Extend DynamicMigration ● MigrationBase::registerMigration();
  17. 17. Migrations ● Gotchas ● Feeds? ● modulename.info ● Migrate more – files[]=my_custom flexible vs _migration.inc ● Store hash of ● Dont believe data everything you find in a database – Eg Date Changed
  18. 18. OpenLayers ● Customisable map layers ● Google ● OpenStreetMap ● Mapbox ● http://drupal.org/project/ openlayers
  19. 19. OpenLayers ● Map ● Gotchas ● Center & Bounds ● Define a map per view ● Layers & Styles ● Expose views output – External Sources in that map – Data in the site ● Try MapBox & TileMill ● Behaviors ● developmentseed – Popup – Geolocation – Draw
  20. 20. ● Views Hacks● Flag● Custom module
  21. 21. Conclusions Drupal ready for spatial data? Yes Do I like the Migrate module? Yes Do I like Pentaho? Yes Did I have any trouble? Whats my favourite module? Features Or maybe drush Or maybe views~$ drush fe waminals node:species_factsheet taxonomy:taxon_name  views_view:waminals* dependencies:openlayers~$ git diff~$ git commit~$ git push
  22. 22. QUESTIONS? ● If you want to know more, please contact me ● Blog article coming kehan@gaiaresources.com.au @kehan ● Web site: www.gaiaresources.com.au

×