Skip to content

Feature request: option to not change subject ordering #44

@fkleedorfer

Description

@fkleedorfer

When authoring shacl, the subject ordering of turtle-formatter gets in the way when named property shapes are used. Usually, property shapes are written as blank nodes, but if they occur multiple times, it is often better to give them their own URIs and make them 'top-level entities', so to speak. Now for ease of editing you would like to keep those property shapes close to the node shapes that they are used in. Otherwise, when making one change, a lot of scrolling or searching in the file may be required, which increases the cognitive load on the person doing it (ie, it's a pain in the neck) and may lead to editing errors.

Similar requirements may exist in other modelling domains, where you might want to keep e.g. members of a family close togehter, or maybe parts of an engine in close proximity of each other.

The current ordering options do not support such use cases very well.

I might be interested in providing a solution, but if so, it will take time. Meanwhile, if anyone has additional requirements or ideas for an algorithm (@ralphtq) , please comment!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions