LCD shield - understand the mapping between Arduino and shield pins

I bought a LCD shield, compatible with the DFRobot LCD Keypad Shield.

That looks more like a "Cytron LCD Keypad Shield for Arduino" but D3 goes to pin 4 of J5 on that board as well.

Don