Updated SPARQL for get documents