-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can this write blank nodes with multiple predicate/object pairs? #360
Comments
I wouldn't think so as the design goal of this library is stream writing rather than pretty-printing. |
I think it would still fit with the design if there was something like There are test cases where the blank node and its contents are a subject, or the blank node is a graph: Lines 511 to 533 in 075e606
|
This one should have worked: import { Writer, DataFactory } from './lib/index.js';
const writer = new Writer();
const { namedNode } = DataFactory;
const blank = writer.blank();
writer.addQuad(blank, namedNode('a'), namedNode('b'));
writer.addQuad(blank, namedNode('c'), namedNode('d'));
writer.end((err, result) => console.log(result)); but it returns this at the moment: [] <a> <b>.
[] <c> <d>. Let me check if this is an easy fix. |
Fix published as v1.17.1. |
The output I am looking for is:
or
The workaround I have found is obviously not intended as it uses internal functions:
This produces the second style output.
The text was updated successfully, but these errors were encountered: