Answering Regular Path Queries Using Views