GfSE / SpecIF-Schema

Definition of the SpecIF JSON-schema and constraint checker
Apache License 2.0
1 stars 0 forks source link

Add "isRequired" to propertyClass #8

Closed odungern closed 17 hours ago

odungern commented 1 year ago

We would like to add an attribute to a propertyClass, whether a corresponding propertyValue must be given for every resource or statement instance.

odungern commented 1 year ago

The SpecIF Ontology allows already to define mandatory property values through its statement "hasProperty" with property "isMandatory". However a generator for SpecIF classes cannot yet make use of it until the schema does not provide a native attribute "isMandatory" as requested, here.

odungern commented 1 year ago

Has been proposed for SpecIF Schema v1.2. Any data-set according SpecIF Schema v1.1 is compatible.

odungern commented 10 months ago

new name proposed: 'isRequired', somewhat similarly to JSON schema and dcterms.

In both examples the term is used differently, so we don't propose the original terms 'dcterms:isRequiredBy', 'dcterms:requires', nor 'required' as in case of the schema.

odungern commented 17 hours ago

Implemented as 'required' in schema v1.2.