Skip to content

Commit

Permalink
typo in method name
Browse files Browse the repository at this point in the history
  • Loading branch information
matentzn committed Dec 8, 2024
1 parent 813e367 commit 36d5db2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/sssom_validate_ui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _render_serialisation_section(serialisation_text, serialisation_format, mark
st.markdown(f"{serialisation_format} rendering is not available for this file, see log.")


def _render_validation_batch(valid: bool, key: str):
def _render_validation_badge(valid: bool, key: str):
if valid:
badge_url = f"https://img.shields.io/badge/{key}-SUCCESSFUL-green?style=green"
else:
Expand Down Expand Up @@ -119,26 +119,26 @@ def _render_tool_information():
sssom_text = _get_sssom_text(sssom_text, sssom_url_input, limit_lines_evaluated)
result: SSSOMValidation = _validate_sssom(sssom_text, limit_lines_displayed)

_render_validation_batch(result.is_valid(), "Validation%20status%20overall")
_render_validation_badge(result.is_valid(), "Validation%20status%20overall")

st.header("tsvalid validation")
_render_validation_batch(result.is_ok_tsvalid(), "tsvalid")
_render_validation_badge(result.is_ok_tsvalid(), "tsvalid")
st.markdown(
"For more information see [tsvalid documentation](https://ontodev.github.io/tsvalid/checks.html)"
)
with st.expander("Report"):
st.markdown(result.get_tsvalid_report())

st.header("SSSOM Schema validation")
_render_validation_batch(result.is_ok_sssom_validation(), "SSSOM")
_render_validation_badge(result.is_ok_sssom_validation(), "SSSOM")
st.markdown(
"For more information see [SSSOM documentation](https://mapping-commons.github.io/sssom/linkml-index/)"
)
with st.expander("Report"):
st.markdown(result.get_sssom_validation_report())

st.header("SSSOM Sample Conversions")
_render_validation_batch(result.is_ok_sssom_conversion(), "SSSOM")
_render_validation_badge(result.is_ok_sssom_conversion(), "SSSOM")
st.markdown(
"This is how the first {limit_lines_displayed} lines of your SSSOM file look like when rendered in various formats."
)
Expand Down

0 comments on commit 36d5db2

Please sign in to comment.