Make ont ids conform to triplestore, throw 404 when ont isn't found