Removed IRI casts (workaround no longer needed) , and trimmed SPARQL lines