Syntactic and Semantic Validation of SPARQL Queries