Skip to content

Sorting Turtle output? #1890

@ajnelson-nist

Description

@ajnelson-nist

Hi all, probably esp. @nicholascar,

PR 1425 added the ttl2 serializer, which since became longturtle. One of the goals was to reduce Git difference noise.

I unfortunately find that most of the noise in Git diffs comes from Turtle output not being sorted. This is an effect both on nodes with IRIs and with blank nodes that (if I'm guessing right) may be sorting based on their skolemized IDs.

Could an option to either of the Turtle serializers be added to sort the output, for those willing to pay the .serialize time cost? I personally like Git-tracking demonstration results, so in many of my uses I'm willing to pay the time cost of sorting graphs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestformat: TurtleRelated to the Turtle format.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions