A systematic knowledge-based approach to licensing water resources