Working solution. Specify IRI on command line and get output on stdout.