Measuring similarity in large-scale folksonomies