I don't know that you can get such results from sparql directly. I would get flat list of subclass relations in xml (.srx) or Json and then process with xslt or JavaScript to write out class hierarchy.
Regards, --Paul > On Feb 1, 2016, at 07:05, Joël Kuiper <j...@joelkuiper.eu> wrote: > > This message has no content.