ld4l-labs / bibliotek-o

bibliotek-o: a BIBFRAME 2 Extension Ontology
Creative Commons Zero v1.0 Universal
9 stars 8 forks source link

Apply standardized XML formatting #46

Open dazza-codes opened 7 years ago

dazza-codes commented 7 years ago

Fix #47

The aim of this PR is to apply a standardized XML format to the ontology file. This can help to avoid whitespace changes to the ontology in PRs. This particular PR uses 4-space indentation:

XMLLINT_INDENT="    " xmllint --format target-ontologies/bibliotek-o.owl

Other standardized formats may be preferred. If there is a way to get a standardized format that allows one line spaces between the major OWL elements (class, property etc.), that would be ideal, it's just not obvious to me at the moment.

PS, I might look into suggestions on this SO answer about using an XSLT stylesheet to achieve a similar layout to the existing layout, only automatically applied: