blake-regalia / graphy.js

A collection of RDF libraries for JavaScript
https://graphy.link/
ISC License
163 stars 4 forks source link

Customise formatting of concise hashes #44

Open tpluscode opened 3 years ago

tpluscode commented 3 years ago

Is it possible to tweak what the output of writing C3/C4 hashes looks like?

Specifically, I would like to add line breaks to object lists to prevent very long lines

blake-regalia commented 3 years ago

Would adding a style option for setting preferred column width when writing objects lists in Turtle/TRiG do the trick? For example, something similar to https://graphy.link/content.textual#config-commentconfig

tpluscode commented 3 years ago

That would work I guess. It's up to you if you would be content with mixed output like of object lists such as

<> ex:prop "foo" , "bar" ,
           "baz"

rather than having each object preceded by a new line...