DS-V4

This specification version is the same as DS-V3, but with improvements to the @context used for Domain Specifications. Those changes are explained below. Additionally, there is an Example DS.

@Context changes

This context introduces the @container keyword with the value @list. This results in a syntax for ranges of properties and possible values for enumeration to be easier to read because these containers don't need a @list-wrapper anymore:

With the previous context:

{
  "@type": "sh:PropertyShape",
  "sh:path": "schema:dayOfWeek",
  "sh:order": 1,
  "sh:minCount": 1,
  "sh:or": {
    "@list": [
      {
        "sh:class": "schema:DayOfWeek",
        "sh:in": {
          "@list": [
            "schema:Wednesday",
            "schema:Sunday",
            "schema:PublicHolidays",
            "schema:Tuesday",
            "schema:Monday",
            "schema:Friday",
            "schema:Saturday",
            "schema:Thursday"
          ]
        }
      }
    ]
  }
}

with the new context:

Improved @context

Last updated