Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to specify indent length when save/export file #1189

Open
bact opened this issue Jan 14, 2024 · 0 comments
Open

Ability to specify indent length when save/export file #1189

bact opened this issue Jan 14, 2024 · 0 comments

Comments

@bact
Copy link

bact commented Jan 14, 2024

A custom indent will be very useful for maintaining a reasonable diff for source version control (like Git).

I have moved to a new environment recently and found that when saving file in Protege the indentation for Turtle file have changed from a fixed length 2-space indent to a variable length indent at vary by the name of the class. For example:

Previous TTL file:

:TechnicalDocumentation a owl:Class;
  rdfs:subClassOf odrl:AssetCollection;
  rdfs:comment """xxx"""

Current TTL file:

:TechnicalDocumentation rdf:type owl:Class ;
                        rdfs:subClassOf odrl:AssetCollection ;
                        rdfs:comment """xxx"""

This cause a lot of unnecessary changes in the code base which make it hard to spot a really meaningful change.

If a user can specify explicitly on the length of the indent, it will make the source version control easier to deal it.

Btw, I'm not 100% certain about the change in my environment. Protege version is probably the same.
The Java runtime has changed from OpenJDK Temurin 17 to OpenJDK Temurin 21.
There can be a change in OWL API that I'm not aware of.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant