Refactored code to recognize if SPARQLEndpointBase is querying itself (if its URI equals configured endpoint URI)