Skip to content

Each object on a new line (new formatting option suggestion) #38

Description

@hoijui

This is only applicable when commas are used in case of multiple objects per subject-predicate pair.

It would look like this:

off (with the comma option on):

@prefix : <http://example.com/> .

:test
  :blorb "a", "b", "c" ;
  :floop "d" .

on:

@prefix : <http://example.com/> .

:test
  :blorb
    "a" ,
    "b" ,
    "c"
  :floop "d" .
  .

I prefer it this way to minimize diffs when adding/removing an object.

I am not fully happy with it, because unlike with the ;, the last object in the list can not be terminated with a , according to Turtle syntax, but I think it is still an improvement to do it this way.

Opinions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    rdf-formatterIssue refers to RDF/Turtle formatter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions