Make sample code working

Change:
- two bad indentations,
- one unwanted ],
- missing URIRef import.