Make sample code working

- one unwanted ],
- missing URIRef import.
Merge pull request #333 from PuckCh/patch-2

Make sample code working