{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/specif/versions/1.1.json",
  "title": "JSON-Schema for SpecIF v1.1",
  "description": "The Specification Integration Facility (SpecIF) integrates partial system models from different methods and tools in a semantic net. Collaborators shall browse, search and audit engineering results in a common context. Also, the exchange of model information between organizations and tools is facilitated. SpecIF represents the visible, i.e. the diagrams and the text, as well as the semantics of system specifications.",
  "x-lintel": {
    "source": "https://www.schemastore.org/specif-1.1.json",
    "sourceSha256": "d00a18b50143b903fd2b08b38608d1133d321ee231167ad648a2558a262f6f4a",
    "fileMatch": [
      "*.specif",
      "*.specif.json"
    ],
    "parsers": [
      "json"
    ]
  },
  "type": "object",
  "properties": {
    "$schema": {
      "description": "An absolute URL pointing to this SpecIF schema. Supports both specif.de and schemastore.org.",
      "type": "string",
      "format": "uri",
      "pattern": "^https?:\\/\\/(specif\\.de\\/v1\\.1\\/schema|json\\.schemastore\\.org\\/specif-1\\.1)\\.json$"
    },
    "id": {
      "$ref": "#/$defs/SpecifId"
    },
    "revision": {
      "$ref": "#/$defs/SpecifRevision"
    },
    "title": {
      "$ref": "#/$defs/SpecifMultiLanguageText",
      "description": "The project's name; if missing, the first hierarchy node's title applies."
    },
    "description": {
      "$ref": "#/$defs/SpecifMultiLanguageText",
      "description": "The project's description; if missing, the first hierarchy node's description applies."
    },
    "isExtension": {
      "description": "Indicates that the project is not schema-compliant on its own; by default the value is 'false'. Of course, it is expected that once extended the project is schema-compliant.",
      "type": "boolean"
    },
    "generator": {
      "type": "string"
    },
    "generatorVersion": {
      "type": "string"
    },
    "rights": {
      "$ref": "#/$defs/SpecifRights"
    },
    "createdAt": {
      "$ref": "#/$defs/SpecifDateTime"
    },
    "createdBy": {
      "$ref": "#/$defs/SpecifCreatedBy"
    },
    "language": {
      "description": "An IETF language tag such as 'en', 'en-US, 'fr' or 'de' showing the used language of the project. Is superseded by a resource's, statement's or property's language value. By default, 'en' is assumed.",
      "type": "string"
    },
    "dataTypes": {
      "description": "The base data types for use by property class definitions.",
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/SpecifDataType"
      }
    },
    "propertyClasses": {
      "description": "Class definition of a property for resources or statements. Is a sub-element of the respective resourceClass or statementClass. If no revision or change information is specified, the respective values of the parent element apply.",
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/SpecifPropertyClass"
      }
    },
    "resourceClasses": {
      "description": "The class definitions for resources.",
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/SpecifResourceClass"
      }
    },
    "statementClasses": {
      "description": "The class definitions for statements in subject-predicate-object statements, where subject and object are resources.",
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/SpecifStatementClass"
      }
    },
    "resources": {
      "description": "The resources such as diagrams, model elements or requirements.",
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/SpecifResource"
      }
    },
    "statements": {
      "description": "Subject-predicate-Object statements, where subject and object are resources. In other terms, statements are directed relations between two resources building a semantic net.",
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/SpecifStatement"
      }
    },
    "hierarchies": {
      "$ref": "#/$defs/SpecifNodes",
      "description": "A list of hierarchies with pointers to resources; may be nested to build a tree, i.e. a hierarchy of pointers."
    },
    "files": {
      "description": "A list of files being referenced by a resource's or statement's property of dataType XHTML using an <object> tag. A file should have a media type as defined by IANA (see below).",
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/SpecifFile"
      }
    }
  },
  "required": [
    "$schema",
    "id",
    "dataTypes",
    "propertyClasses",
    "resourceClasses",
    "statementClasses",
    "resources",
    "statements",
    "hierarchies"
  ],
  "$defs": {
    "SpecifId": {
      "description": "A globally unique identifier.",
      "type": "string",
      "pattern": "^[_a-zA-Z]{1}[_a-zA-Z0-9.-]*$"
    },
    "SpecifAlternativeId": {
      "description": "A list of pointers to resources resp. statements which have been merged to this one.",
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/SpecifId",
          "description": "A string with a valid identifier of a model-element"
        },
        "revision": {
          "$ref": "#/$defs/SpecifRevision",
          "description": "If missing, the latest revision is implied."
        },
        "project": {
          "$ref": "#/$defs/SpecifId",
          "description": "A string with a valid project identifier in case the identifier is not globally unique."
        }
      },
      "required": [
        "id"
      ],
      "additionalProperties": false
    },
    "SpecifAlternativeIds": {
      "description": "The list of consolidated items to be used in case a consolidated item shall be updated.",
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/SpecifAlternativeId"
      }
    },
    "SpecifRevision": {
      "description": "A globally unique revision tag with one or multiple blocks with alphanumeric characters separated by a special character [.:,;/-]. Sequential as well as branching/merging notations are possible.",
      "type": "string",
      "pattern": "^(?:[0-9a-zA-Z]+[.:,;/-])*[0-9a-zA-Z]+$"
    },
    "SpecifReplaces": {
      "description": "For change and configuration management; the first revision has 0 entries, a simple modification has 1 entry and the result of a merge has 2 entries.",
      "type": "array",
      "maxItems": 2,
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/SpecifRevision"
      }
    },
    "SpecifKey": {
      "description": "A key for a particular revision of an identifiable item, e.g. of a resource. A key consists of a globally unique identifier and a revision. No or an undefined revision means the latest revision of the identified item.",
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/SpecifId"
        },
        "revision": {
          "$ref": "#/$defs/SpecifRevision",
          "description": "If missing, the latest revision is implied."
        }
      },
      "required": [
        "id"
      ],
      "additionalProperties": false
    },
    "SpecifKeys": {
      "description": "A list of keys referencing items such as propertyClasses, resourceClasses or statementClasses; any list must have >0 entries including those of any parent element.",
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/SpecifKey"
      }
    },
    "SpecifRights": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      },
      "required": [
        "title",
        "url"
      ]
    },
    "SpecifOrg": {
      "type": "object",
      "properties": {
        "organizationName": {
          "type": "string"
        }
      },
      "required": [
        "organizationName"
      ]
    },
    "SpecifCreatedBy": {
      "description": "The creator of the SpecIF data-set (file). If specified, at least an e-mail address must be given.",
      "type": "object",
      "properties": {
        "familyName": {
          "type": "string"
        },
        "givenName": {
          "type": "string"
        },
        "org": {
          "$ref": "#/$defs/SpecifOrg"
        },
        "email": {
          "type": "string",
          "format": "email"
        }
      },
      "required": [
        "email"
      ]
    },
    "SpecifText": {
      "description": "A good class name indicates it's role. The use of a vocabulary-term is recommended, which in turn can be translated to any natural or domain language.",
      "type": "string"
    },
    "SpecifTextFormat": {
      "type": "string",
      "enum": [
        "plain",
        "xhtml"
      ]
    },
    "SpecifMultiLanguageText": {
      "description": "A list of items with text and language properties. If the information is be provided in multiple languages, the language must be specified for proper selection; it is however not required by the schema to avoid a lot of overhead in most cases with a single language.",
      "type": "array",
      "uniqueItems": true,
      "items": {
        "type": "object",
        "properties": {
          "text": {
            "description": "A string containing some text.",
            "type": "string"
          },
          "format": {
            "$ref": "#/$defs/SpecifTextFormat",
            "description": "By default, the format is assumed 'plain'."
          },
          "language": {
            "description": "An IETF language tag such as 'en', 'en-US, 'fr' or 'de'.",
            "type": "string"
          }
        },
        "required": [
          "text"
        ],
        "additionalProperties": false
      }
    },
    "SpecifValue": {
      "oneOf": [
        {
          "description": "For properties with a dataType other than 'xs:string'.",
          "type": "string"
        },
        {
          "$ref": "#/$defs/SpecifMultiLanguageText",
          "description": "For properties with dataType 'xs:string'."
        }
      ]
    },
    "SpecifValues": {
      "description": "If 'multiple' of the propertyClass is undefined or false, the array must contain one item. If the value is unknown, omit the whole property. By default, the class' value applies.",
      "type": "array",
      "minItems": 1,
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/SpecifValue"
      }
    },
    "SpecifEnumeratedValue": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/SpecifId"
        },
        "value": {
          "$ref": "#/$defs/SpecifValue"
        }
      },
      "required": [
        "id",
        "value"
      ]
    },
    "SpecifEnumeratedValues": {
      "type": "array",
      "title": "Enumerated Values",
      "description": "Enumerated values for the given dataType. If 'multiple' is true 0..n options may be selected, otherwise exactly one must be selected.",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/SpecifEnumeratedValue"
      }
    },
    "SpecifDateTime": {
      "description": "An ISO-8601 dateTime string. For reduced accuracy, any number of values may be dropped, but only from right to left.",
      "type": "string",
      "format": "date-time"
    },
    "SpecifIcon": {
      "description": "A symbol for display as a prefix to titles; applicable to all instances of the class. Is usually a XML-encoded UTF-8 symbol, can be an URL or dataURL.",
      "type": "string"
    },
    "SpecifInstantiation": {
      "description": "Indicates whether an instance of the class is created automatically, manually or both. All is allowed, if the property is omitted. The class is abstract and cannot be instantiated, if the property list is present, but empty.",
      "type": "array",
      "uniqueItems": true,
      "items": {
        "type": "string",
        "enum": [
          "auto",
          "user"
        ]
      }
    },
    "SpecifDataType": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "type": {
              "description": "The corresponding definition in <https://www.w3.org/TR/xmlschema-2/> applies.",
              "type": "string",
              "title": "Data-type 'Boolean'",
              "enum": [
                "xs:boolean"
              ]
            },
            "id": {
              "$ref": "#/$defs/SpecifId"
            },
            "title": {
              "$ref": "#/$defs/SpecifText"
            },
            "description": {
              "$ref": "#/$defs/SpecifMultiLanguageText"
            },
            "revision": {
              "$ref": "#/$defs/SpecifRevision"
            },
            "replaces": {
              "$ref": "#/$defs/SpecifReplaces"
            },
            "changedAt": {
              "$ref": "#/$defs/SpecifDateTime"
            },
            "changedBy": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "title",
            "type",
            "changedAt"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "description": "The corresponding definition in <https://www.w3.org/TR/xmlschema-2/> applies.",
              "type": "string",
              "title": "Data-type 'dateTime', 'duration' or 'URI'",
              "enum": [
                "xs:dateTime",
                "xs:duration",
                "xs:anyURI"
              ]
            },
            "id": {
              "$ref": "#/$defs/SpecifId"
            },
            "title": {
              "$ref": "#/$defs/SpecifText"
            },
            "description": {
              "$ref": "#/$defs/SpecifMultiLanguageText"
            },
            "enumeration": {
              "$ref": "#/$defs/SpecifEnumeratedValues",
              "description": "An optional list of values to choose from for a specific instance; multiple values are allowed, if 'multiple' is set to 'true'."
            },
            "multiple": {
              "description": "Indicates whether multiple values are allowed; by default the value is 'false'.",
              "type": "boolean"
            },
            "revision": {
              "$ref": "#/$defs/SpecifRevision"
            },
            "replaces": {
              "$ref": "#/$defs/SpecifReplaces"
            },
            "changedAt": {
              "$ref": "#/$defs/SpecifDateTime"
            },
            "changedBy": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "title",
            "type",
            "changedAt"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "description": "The corresponding definition in <https://www.w3.org/TR/xmlschema-2/> applies.",
              "type": "string",
              "title": "Data-type 'Integer'",
              "enum": [
                "xs:integer"
              ]
            },
            "id": {
              "$ref": "#/$defs/SpecifId"
            },
            "title": {
              "$ref": "#/$defs/SpecifText"
            },
            "description": {
              "$ref": "#/$defs/SpecifMultiLanguageText"
            },
            "minInclusive": {
              "type": "number",
              "title": "Minimum Value of a Number",
              "description": "Optional use by dataTypes 'xs:integer' and 'xs:double'."
            },
            "maxInclusive": {
              "type": "number",
              "title": "Maximum Value of a Number",
              "description": "Optional use by dataTypes 'xs:integer' and 'xs:double'."
            },
            "enumeration": {
              "$ref": "#/$defs/SpecifEnumeratedValues",
              "description": "An optional list of values to choose from for a specific instance; multiple values are allowed, if 'multiple' is set to 'true'."
            },
            "multiple": {
              "description": "Indicates whether multiple values are allowed; by default the value is 'false'.",
              "type": "boolean"
            },
            "revision": {
              "$ref": "#/$defs/SpecifRevision"
            },
            "replaces": {
              "$ref": "#/$defs/SpecifReplaces"
            },
            "changedAt": {
              "$ref": "#/$defs/SpecifDateTime"
            },
            "changedBy": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "title",
            "type",
            "changedAt"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "description": "The corresponding definition in <https://www.w3.org/TR/xmlschema-2/> applies.",
              "type": "string",
              "title": "Data-type 'Double'",
              "enum": [
                "xs:double"
              ]
            },
            "id": {
              "$ref": "#/$defs/SpecifId"
            },
            "title": {
              "$ref": "#/$defs/SpecifText"
            },
            "description": {
              "$ref": "#/$defs/SpecifMultiLanguageText"
            },
            "fractionDigits": {
              "description": "Optional use by dataType 'xs:double', indicates the number of decimals.",
              "type": "integer",
              "title": "Number of fraction digits of a Decimal Number",
              "minimum": 1
            },
            "minInclusive": {
              "description": "Optional use by dataTypes 'xs:integer' and 'xs:double'.",
              "type": "number",
              "title": "Minimum Value of a Number"
            },
            "maxInclusive": {
              "description": "Optional use by dataTypes 'xs:integer' and 'xs:double'.",
              "type": "number",
              "title": "Maximum Value of a Number"
            },
            "enumeration": {
              "$ref": "#/$defs/SpecifEnumeratedValues",
              "description": "An optional list of values to choose from for a specific instance; multiple values are allowed, if 'multiple' is set to 'true'."
            },
            "multiple": {
              "description": "Indicates whether multiple values are allowed; by default the value is 'false'.",
              "type": "boolean"
            },
            "revision": {
              "$ref": "#/$defs/SpecifRevision"
            },
            "replaces": {
              "$ref": "#/$defs/SpecifReplaces"
            },
            "changedAt": {
              "$ref": "#/$defs/SpecifDateTime"
            },
            "changedBy": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "title",
            "type",
            "changedAt"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "description": "The corresponding definition in <https://www.w3.org/TR/xmlschema-2/> applies.",
              "type": "string",
              "title": "Data-type 'String' with plain or formatted text. The property's text object MAY specify the format and language.",
              "enum": [
                "xs:string"
              ]
            },
            "id": {
              "$ref": "#/$defs/SpecifId"
            },
            "title": {
              "$ref": "#/$defs/SpecifText"
            },
            "description": {
              "$ref": "#/$defs/SpecifMultiLanguageText"
            },
            "maxLength": {
              "description": "Optional use by dataType 'xs:string'.",
              "type": "integer",
              "title": "Maximum String Length",
              "minimum": 0
            },
            "enumeration": {
              "$ref": "#/$defs/SpecifEnumeratedValues",
              "description": "An optional list of values to choose from for a specific instance; multiple values are allowed, if 'multiple' is set to 'true'."
            },
            "multiple": {
              "description": "Indicates whether multiple values are allowed; by default the value is 'false'.",
              "type": "boolean"
            },
            "revision": {
              "$ref": "#/$defs/SpecifRevision"
            },
            "replaces": {
              "$ref": "#/$defs/SpecifReplaces"
            },
            "changedAt": {
              "$ref": "#/$defs/SpecifDateTime"
            },
            "changedBy": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "title",
            "type",
            "changedAt"
          ],
          "additionalProperties": false
        }
      ]
    },
    "SpecifPropertyClass": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/SpecifId"
        },
        "title": {
          "$ref": "#/$defs/SpecifText"
        },
        "description": {
          "$ref": "#/$defs/SpecifMultiLanguageText"
        },
        "dataType": {
          "$ref": "#/$defs/SpecifKey",
          "description": "Must be a member of dataTypes."
        },
        "multiple": {
          "description": "Optional use by all propertyClasses. Indicates whether multiple values can be given. If omitted, the 'multiple' property of the dataType applies; by default the value is 'false'.",
          "type": "boolean"
        },
        "values": {
          "$ref": "#/$defs/SpecifValues",
          "description": "An optional list of default values in case the instantiated resource's or statement's property is missing."
        },
        "format": {
          "$ref": "#/$defs/SpecifTextFormat",
          "description": "The default format of a property's text value. Is superseded by a text value's format attribute."
        },
        "unit": {
          "description": "The unit of a property's numeric value; preferably an SI unit symbol such as 'm^3/kg' (Système international (d'unités)) or a currency symbol.",
          "type": "string"
        },
        "revision": {
          "$ref": "#/$defs/SpecifRevision"
        },
        "replaces": {
          "$ref": "#/$defs/SpecifReplaces"
        },
        "changedAt": {
          "$ref": "#/$defs/SpecifDateTime"
        },
        "changedBy": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "title",
        "dataType",
        "changedAt"
      ],
      "additionalProperties": false
    },
    "SpecifResourceClass": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/SpecifId"
        },
        "title": {
          "$ref": "#/$defs/SpecifText"
        },
        "description": {
          "$ref": "#/$defs/SpecifMultiLanguageText"
        },
        "extends": {
          "$ref": "#/$defs/SpecifKey",
          "description": "Must be a member of resourceClasses."
        },
        "icon": {
          "$ref": "#/$defs/SpecifIcon"
        },
        "isHeading": {
          "type": "boolean"
        },
        "instantiation": {
          "$ref": "#/$defs/SpecifInstantiation"
        },
        "propertyClasses": {
          "$ref": "#/$defs/SpecifKeys",
          "description": "A list of keys referencing propertyClasses; a base resourceClass must have at least one propertyClass, whereas an extending class may have none."
        },
        "revision": {
          "$ref": "#/$defs/SpecifRevision"
        },
        "replaces": {
          "$ref": "#/$defs/SpecifReplaces"
        },
        "changedAt": {
          "$ref": "#/$defs/SpecifDateTime"
        },
        "changedBy": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "title",
        "propertyClasses",
        "changedAt"
      ],
      "additionalProperties": false
    },
    "SpecifStatementClass": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/SpecifId"
        },
        "title": {
          "$ref": "#/$defs/SpecifText"
        },
        "description": {
          "$ref": "#/$defs/SpecifMultiLanguageText"
        },
        "extends": {
          "$ref": "#/$defs/SpecifKey",
          "description": "Must be a member of statementClasses."
        },
        "icon": {
          "$ref": "#/$defs/SpecifIcon"
        },
        "instantiation": {
          "$ref": "#/$defs/SpecifInstantiation"
        },
        "isUndirected": {
          "description": "Indicates that an instance's subject and object are equivalent and can be exchanged without change in meaning.",
          "type": "boolean"
        },
        "propertyClasses": {
          "$ref": "#/$defs/SpecifKeys",
          "description": "A list of keys referencing propertyClasses; a statementClass may exist without propertyClasses."
        },
        "subjectClasses": {
          "$ref": "#/$defs/SpecifKeys",
          "description": "A list of keys referencing eligible resource and statement classes for a statement's subject; if missing, all resource or statement classes are eligible."
        },
        "objectClasses": {
          "$ref": "#/$defs/SpecifKeys",
          "description": "A list of keys referencing eligible resource and statement classes for a statement's object; if missing, all resource or statement classes are eligible."
        },
        "revision": {
          "$ref": "#/$defs/SpecifRevision"
        },
        "replaces": {
          "$ref": "#/$defs/SpecifReplaces"
        },
        "changedAt": {
          "$ref": "#/$defs/SpecifDateTime"
        },
        "changedBy": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "title",
        "changedAt"
      ],
      "additionalProperties": false
    },
    "SpecifProperty": {
      "type": "object",
      "properties": {
        "class": {
          "$ref": "#/$defs/SpecifKey",
          "description": "Must be a member of 'propertyClasses'. In addition, it must be listed in the propertyClasses of the respective resource's or statement's (or any of it's parent's) class."
        },
        "values": {
          "$ref": "#/$defs/SpecifValues"
        }
      },
      "required": [
        "class",
        "values"
      ]
    },
    "SpecifProperties": {
      "description": "A list of properties of a resource or statement; the number of properties including any parent's properties must be >0.",
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/SpecifProperty"
      }
    },
    "SpecifResource": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/SpecifId"
        },
        "alternativeIds": {
          "$ref": "#/$defs/SpecifAlternativeIds"
        },
        "class": {
          "$ref": "#/$defs/SpecifKey",
          "description": "Must be a member of resourceClasses."
        },
        "language": {
          "description": "An IETF language tag such as 'en', 'en-US, 'fr' or 'de' showing the used language of the resource. Is superseded by a property's language value.",
          "type": "string"
        },
        "properties": {
          "$ref": "#/$defs/SpecifProperties"
        },
        "revision": {
          "$ref": "#/$defs/SpecifRevision"
        },
        "replaces": {
          "$ref": "#/$defs/SpecifReplaces"
        },
        "changedAt": {
          "$ref": "#/$defs/SpecifDateTime"
        },
        "changedBy": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "class",
        "properties",
        "changedAt"
      ]
    },
    "SpecifStatement": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/SpecifId"
        },
        "alternativeIds": {
          "$ref": "#/$defs/SpecifAlternativeIds"
        },
        "class": {
          "$ref": "#/$defs/SpecifKey",
          "description": "Must be a member of statementClasses."
        },
        "language": {
          "description": "An IETF language tag such as 'en', 'en-US, 'fr' or 'de' showing the used language of the statement. Is superseded by a property's language value.",
          "type": "string"
        },
        "subject": {
          "$ref": "#/$defs/SpecifKey",
          "description": "Must be a member of resources or statements."
        },
        "object": {
          "$ref": "#/$defs/SpecifKey",
          "description": "Must be a member of resources or statements."
        },
        "properties": {
          "$ref": "#/$defs/SpecifProperties",
          "description": "If there is no title property, the statementClass' title applies."
        },
        "revision": {
          "$ref": "#/$defs/SpecifRevision"
        },
        "replaces": {
          "$ref": "#/$defs/SpecifReplaces"
        },
        "changedAt": {
          "$ref": "#/$defs/SpecifDateTime"
        },
        "changedBy": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "class",
        "subject",
        "object",
        "changedAt"
      ]
    },
    "SpecifNode": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/SpecifId"
        },
        "title": {
          "$ref": "#/$defs/SpecifMultiLanguageText",
          "description": "The node's label; if missing, the value of the referenced resource's title property is applied."
        },
        "description": {
          "$ref": "#/$defs/SpecifMultiLanguageText"
        },
        "resource": {
          "$ref": "#/$defs/SpecifKey",
          "description": "The pointer to the resource to be displayed at this position."
        },
        "nodes": {
          "$ref": "#/$defs/SpecifNodes",
          "description": "The next hierarchy level."
        },
        "revision": {
          "$ref": "#/$defs/SpecifRevision"
        },
        "replaces": {
          "$ref": "#/$defs/SpecifReplaces"
        },
        "changedAt": {
          "$ref": "#/$defs/SpecifDateTime"
        },
        "changedBy": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "resource",
        "changedAt"
      ]
    },
    "SpecifNodes": {
      "description": "A list of pointers to resources; may be nested forming a tree, i.e. a hierarchy of pointers.",
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/SpecifNode"
      }
    },
    "SpecifFile": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/SpecifId"
        },
        "title": {
          "description": "The file's name.",
          "type": "string"
        },
        "description": {
          "$ref": "#/$defs/SpecifMultiLanguageText"
        },
        "url": {
          "description": "An absolute or relative URL to the file; will be of format 'uri-reference' in future. If missing, the title applies.",
          "type": "string"
        },
        "type": {
          "description": "The file's media type (formerly MIME-type) according to <https://www.iana.org/assignments/media-types/media-types.xhtml>.",
          "type": "string"
        },
        "revision": {
          "$ref": "#/$defs/SpecifRevision"
        },
        "replaces": {
          "$ref": "#/$defs/SpecifReplaces"
        },
        "changedAt": {
          "$ref": "#/$defs/SpecifDateTime"
        },
        "changedBy": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "title",
        "type",
        "changedAt"
      ]
    }
  }
}
