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

Add option to infer object type from type field #12

Closed
nichtich opened this issue Apr 29, 2021 · 0 comments
Closed

Add option to infer object type from type field #12

nichtich opened this issue Apr 29, 2021 · 0 comments
Labels

Comments

@nichtich
Copy link
Member

Validating JSKOS resources should be extended to more specific object types (concept, concept scheme...) via type field:

jskos.type = ["http://www.w3.org/2004/02/skos/core#Concept"]
validate.resource(jskos, { useType: true })
validate.concept(jskos) // equivalent
validate(jskos) // generic function equivalent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant