implement get_output, replace tuple by structure

Local resources can be published through the web server, this is mainly
used with binary data that can not be easily published with RDF