The SDK for the data catalog contains examples of how to work with data:
Working with data catalog SDK
Uploading data with objects