Skip to content

Can this write blank nodes with multiple predicate/object pairs? #360

Closed
@edwardsph

Description

@edwardsph

The output I am looking for is:

[ ] <a> <b> ;
    <c> <d> .

or

[
  <a> <b> ;
  <c> <d> 
] .

The workaround I have found is obviously not intended as it uses internal functions:

writer._write(writer._encodeIriOrBlank(writer.blank([
  { predicate: namedNode('a'), object: namedNode('b') },
  { predicate: namedNode('c'), object: namedNode('d') },
])));
writer._write('.\n');

This produces the second style output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions