Mapping to Darwin Core

I know that the next 6.1 version will handle this, but I wonder if anyone has written and can share the MySQL queries necessary to map occurrence data to the Darwin Core definition used by the GBIF IPT.