Skip to content

Commit

Permalink
skip serialising empty default graph
Browse files Browse the repository at this point in the history
  • Loading branch information
gromgull committed Jan 24, 2017
1 parent 35c76e5 commit 17abfb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rdflib/plugins/serializers/trig.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def serialize(self, stream, base=None, encoding=None,

firstTime = True
for store, (ordered_subjects, subjects, ref) in self._contexts.items():
if not ordered_subjects: continue

self._references = ref
self._serialized = {}
self.store = store
Expand Down

0 comments on commit 17abfb9

Please sign in to comment.