konigio / konig

A collection of tools for semantic modeling
4 stars 4 forks source link

Enum Struct in JSON-Schema #1686

Closed gmcfall closed 4 years ago

gmcfall commented 4 years ago

Suppose a PropertyShape has a nested NodeShape given by sh:shape with sh:nodeKind equal to sh:IRI and sh:targetClass undefined (or, equivalently, set to owl:Thing). Suppose further that the PropertyShape has specified that the sh:class is an Enumeration. I want the generated JSON Schema (and documentation) to specify a set of exactlyOneOf constraints for the nested records.