https://github.com/Conal-Tuohy/huni/tree/master/data-store/www/skos-tools/vocabulary.xml
I’ll explain briefly how it works, but first, I think it’s necessary to explain the rationale for the vocabulary tool, and for that you need to see how it fits into the LODLAM environment.
http://conaltuohy.com/blog/taking-control-of-an-uncontrolled-vocabulary/