In a way, Lightning and Ripple are the same, but without the 3rd party trust on the gateways included.
A very superficial way.
Ripple is a 2nd layer network to all the systems it interfaces with. Lightning is a Bitcoin-only 2nd layer. That's where comparisons end.