Since I wrote that, Wikidata – a linked-, open- data repository sitting alongside Wikipedia – has become available.

So now you can use Wikidata URIs :

The Merchant of Venice == https://www.wikidata.org/entity/Q206400

and not just for works:

Lady Macbeth == https://www.wikidata.org/entity/Q2454065