NatLibFi / Skosify

Validate, convert and improve SKOS vocabularies
http://skosify.readthedocs.io/
MIT License
55 stars 8 forks source link

Provide validation via API #52

Open nichtich opened 7 years ago

nichtich commented 7 years ago

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?

osma commented 7 years ago

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

nichtich commented 7 years ago

Good idea, so an empty result is good

Am 20. November 2017 14:40:38 MEZ schrieb Osma Suominen notifications@github.com:

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

JoelCa commented 4 years ago

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