The first file I have is the complete triple store dump of my database, and is about 4.1 GB. When I attempt to parse it
e = Graph()
e.parse("content.trig", format="trig")
I get the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/trip_cleaner/venv/lib/python3.6/site-packages/rdflib/graph.py", line 1043, in parse
parser.parse(source, self, **args)
File "/trip_cleaner/venv/lib/python3.6/site-packages/rdflib/plugins/parsers/trig.py", line 161, in parse
p.loadStream(source.getByteStream())
File "/trip_cleaner/venv/lib/python3.6/site-packages/rdflib/plugins/parsers/notation3.py", line 434, in loadStream
return self.loadBuf(stream.read()) # Not ideal
OSError: [Errno 22] Invalid argument
The second file I have is a drastically reduced version of content.trig, with just the first 1000 lines (~250 triples). This is "successfully" parsed, however has nothing in the graph afterwords - len(e) = 0.
Any idea on where I am going wrong?