Create getTriples member for converting a resource to RDF

https://www.pivotaltracker.com/n/projects/684825