Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide validation via API #52

Open
nichtich opened this issue Nov 20, 2017 · 3 comments
Open

Provide validation via API #52

nichtich opened this issue Nov 20, 2017 · 3 comments

Comments

@nichtich
Copy link
Collaborator

nichtich commented Nov 20, 2017

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
Copy link
Member

osma commented Nov 20, 2017

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

@nichtich
Copy link
Collaborator Author

nichtich commented Nov 20, 2017 via email

@JoelCa
Copy link

JoelCa commented Jun 23, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants