Clean up Sparql resource