code: def __getFormat(self, format):
  		
  		if format == "XML":
  			self.sparql.setReturnFormat(XML)
  			self.format = "XML"
  		elif format == "RDF":
  			self.sparql.setReturnFormat(RDF)
  			self.format = "RDF"
  		else:
  			self.sparql.setReturnFormat(JSON)
  			self.format = "JSON"
docs: Defaults to JSON  [ps: 'RDF' is the native rdflib representation]