ld4l-labs / bibliotek-o

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

Standardized XML formatting for the OWL file #47

Open dazza-codes opened 7 years ago

dazza-codes commented 7 years ago

It may ease the review of contributions (PRs) if the ontology file has a standardized XML format that is easily applied by an automated tool that avoids human typo errors and variations in preferences set in all kinds of IDEs. This can help to avoid whitespace changes to the ontology in PRs. For example, the xmllint tool can apply a simple 4-space indentation, as in:

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 could be neat.