Avoiding some unnecessary reading from xml in rdf graph