[tests] skip SPARQL tests when python-sparqlwrapper is not installed (closes #279604) [applied]