Skip to content

Commit a78fc0f

Browse files
authored
Merge pull request #562 from RinkeHoekstra/ISSUE-561
`atomicTermToN3` now checks for `DefaultGraph` term type
2 parents d0f324c + 6e73e03 commit a78fc0f

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)