Skosify icon indicating copy to clipboard operation
Skosify copied to clipboard

Provide validation via API

Open nichtich opened this issue 8 years ago • 3 comments

Inference is provided via Python module since 2.0.1. Validation as independent step should be provided next, e.g.

import skosify

if not skosify.validate.labels(rdf):
  print("your vocabulary is ugly!")

Should validation throw an error or just log exception? How can an application catch the error report?

nichtich avatar Nov 20 '17 13:11 nichtich

Wouldn't it be more natural if the validate function/method returned a list of errors/warnings?

osma avatar Nov 20 '17 13:11 osma

Good idea, so an empty result is good

Am 20. November 2017 14:40:38 MEZ schrieb Osma Suominen [email protected]:

Wouldn't it be more natural if the validate function/method returned a list of errors/warnings?

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/NatLibFi/Skosify/issues/52#issuecomment-345698238

-- Jakob Voß via Android

nichtich avatar Nov 20 '17 15:11 nichtich

Was this issue solved by the check.py module? #64

JoelCa avatar Jun 23 '20 22:06 JoelCa