Skip to content

Commit

Permalink
Added check for DefaultGraph in atomicTermToN3 function (returns an…
Browse files Browse the repository at this point in the history
… empty string). linkeddata#561
  • Loading branch information
RinkeHoekstra committed Jul 20, 2022
1 parent c14dfd5 commit 6e73e03
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 6e73e03

Please sign in to comment.