Create getTriples member for converting a resource to RDF