preventing duplicate rdf:rest rdf:nil triple