Extract years from xsd date objects in client.

Some SPARQL endpoints don't support the YEAR function yet.