I have the following code that reads lines from an n-quad RDF file 30kmoviedata.nq.gz in python:
import gzip, os, csv gzfile = gzip.open(\'30kmoviedata.nq.gz\', m