Make sample code working

- one unwanted ],
- missing URIRef import.