Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Apply standardized XML formatting #46

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Apply standardized XML formatting #46

wants to merge 1 commit into from

Conversation

dazza-codes
Copy link
Contributor

@dazza-codes dazza-codes commented Jun 13, 2017

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:

@dazza-codes dazza-codes changed the title Apply standardized XML formatting using "xmllint --format {ont.owl}" Apply standardized XML formatting Jun 13, 2017
@dazza-codes dazza-codes changed the title Apply standardized XML formatting [WIP] Apply standardized XML formatting Jun 13, 2017
XMLLINT_INDENT="    " xmllint --format target-ontologies/bibliotek-o.owl
@dazza-codes dazza-codes changed the title [WIP] Apply standardized XML formatting Apply standardized XML formatting Jun 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant