Open hsolbrig opened 5 years ago
We need a consistent pretty-printer (__str__?) for EvaluationResults. Example from biolinkml:
__str__
def shex_results_as_string(rslts: EvaluationResult) -> str: """ Pretty print ShEx Evaluation result """ # TODO: Add this method to ShEx itself rval = [f"Evalutating: {str(rslts.focus)} against {str(rslts.start)}"] if rslts.result: rval.append("Result: CONFORMS") else: rval.append("Result: NonConforming") rval += rslts.reason.split('\n') return '\n'.join(rval)
We need a consistent pretty-printer (
__str__
?) for EvaluationResults. Example from biolinkml: