Skip to content

Commit 6e73e03

Browse files
committed
Added check for DefaultGraph in atomicTermToN3 function (returns an empty string). linkeddata#561
1 parent c14dfd5 commit 6e73e03

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/serializer.js

+2
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,8 @@ export class Serializer {
561561
return str
562562
case 'NamedNode':
563563
return this.symbolToN3(expr)
564+
case 'DefaultGraph':
565+
return '';
564566
default:
565567
throw new Error('Internal: atomicTermToN3 cannot handle ' + expr + ' of termType: ' + expr.termType)
566568
}

0 commit comments

Comments
 (0)