gbv / jskos-validate

Validation for JSKOS data.
MIT License
0 stars 1 forks source link

Add option to infer object type from type field #12

Closed nichtich closed 2 years ago

nichtich commented 3 years ago

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