rdfjs / N3.js

Lightning fast, spec-compatible, streaming RDF for JavaScript
http://rdf.js.org/N3.js/
Other
676 stars 127 forks source link

Blank nodes in list given invalid `.` at start in `text/n3` format. #332

Open jeswr opened 1 year ago

jeswr commented 1 year ago

Running

import { Parser } from 'n3';
const parser = new Parser({ format: 'text/n3' });
console.log(parser.parse('<s> <p> (_:a).'))

Creates an invalid blank node id of _:.a

This also pops up in https://github.com/eyereasoner/eye-js/pull/1107/files#r1616137075