pull out sparql ret uri segments