[web/views/rdf] Take the second element of XY equivalent for non final relation
When given a Yams snippet of the form `<etype> <rtype>` ``xy.xeq()`` will
return the XML snippet equivalent to this relation in the form of a tuple
`(subject, rtype, object)` so ``item`` will always be a tuple here.
In fact, the correct code appears just a few lines above (around line 88) for
final relations so I guess this is a copy-paste mistake.
Closes #4745929.
functiondatetuple(d){return[d.getFullYear(),d.getMonth()+1,d.getDate(),d.getHours(),d.getMinutes()];}functionpprint(obj){print('{');for(kinobj){print(' '+k+' = '+obj[k]);}print('}');}functionarrayrepr(array){return'['+array.join(', ')+']';}functionassertArrayEquals(array1,array2){if(array1.length!=array2.length){thrownewcrosscheck.AssertionFailure(array1.join(', ')+' != '+array2.join(', '));}for(vari=0;i<array1.length;i++){if(array1[i]!=array2[i]){thrownewcrosscheck.AssertionFailure(arrayrepr(array1)+' and '+arrayrepr(array2)+' differs at index '+i);}}}