Ontology-Based Translation of Natural Language Queries to SPARQL