Skip to content

Commit

Permalink
Merge pull request #562 from RinkeHoekstra/ISSUE-561
Browse files Browse the repository at this point in the history
`atomicTermToN3` now checks for `DefaultGraph` term type
  • Loading branch information
bourgeoa authored Aug 23, 2022
2 parents d0f324c + 6e73e03 commit a78fc0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/serializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,8 @@ export class Serializer {
return str
case 'NamedNode':
return this.symbolToN3(expr)
case 'DefaultGraph':
return '';
default:
throw new Error('Internal: atomicTermToN3 cannot handle ' + expr + ' of termType: ' + expr.termType)
}
Expand Down

0 comments on commit a78fc0f

Please sign in to comment.