Regular Path Queries in Lightweight Description Logics: Complexity and Algorithms