One of the more hidden features of Elgg is the Export interface.

In a nutshell this interface provides an export view for Entities, Metadata, Annotations and relationships which can provide a convenient way of accessing data objects in a machine readable form.

Endpoints

The export url is constructed in different ways for entities, relationships and metadata.

All endpoints begin with:

http://yoursite.com/export/[VIEW]/

Where [VIEW] is the format you want the data exported in – e.g. json, opendd, php or default.

Entities
To export a GUID simply add it to the end:

http://yoursite.com/export/[VIEW]/[GUID]/

Annotations & Metadata

Metadata and annotation can be exported by providing the type (‘annotation’ or ‘metadata’) and the appropriate ID.

http://yoursite.com/export/[VIEW]/[GUID]/[annotation|metadata]/[annotation_id|metadata_id]/

Relationships
Follows the same format as above, but with [GUID] being the first guid in the relationship – in essence the entity to which the relationship “belongs”.

http://yoursite.com/export/[VIEW]/[GUID]/relationship/[relationship_id]/

Security

Some items of data (for example user passwords) are restricted from this export view. Exactly what is output by an output view is governed by $object->getExportableValues(); which returns a list of exportable fields in the entity.

In addition, access permissions on the object are respected – meaning that if you can’t see an item in Elgg, you will not be able to see it in the export view either.

Yesterday, all the hard work we put in to getting Barcamp Transparency 2009 ready paid off, and I have to admit I am really pleased with how it went!

Judging by the feedback I’ve been getting throughout the day you guys enjoyed it as well, but please let me know if there’s anything that we could do better next year!

Of course the event wouldn’t have been possible without our sponsors… Google who were kind enough to cover the cost of the venue (and thanks to the Oxford Club for being so good to us on the day!). Thanks to our other sponsors – 1000 heads, Proactive, Outmap, Moo and TerminateTheRate.org as well.

Also, thanks to our media sponsors: Global voices, Mashable and JackFM.

Most of all, thanks to all of you who came!

There were plenty of interesting conversations had, and we’ve already spawned a couple of interesting projects – do write in and tell me about yours, we’d love to do a followup!

Check out our flick group, and if you have any photos feel free to upload them to the group pool.

Anyway, I’ve rambled on…see you next year!