Fix GraphResource REST endpoint

The GraphResource class was not working for for me... running the *DemoApp.class* and `wget --header="Accept: application/x-trig" http://localhost:8001/graph/demoGraph` Tests first created an NPE for me and then a HTTP 405 code method not allowed. I fixed both in two separate commits.

Best!

Roland.