{
  "$defs": {
    "IdentifierValue": {
      "additionalProperties": true,
      "properties": {
        "@id": {
          "title": "@Id",
          "type": "string"
        }
      },
      "required": [
        "@id"
      ],
      "title": "IdentifierValue",
      "type": "object"
    }
  },
  "additionalProperties": true,
  "description": "Model Card for ML models as RO-Crate Dataset elements",
  "properties": {
    "@id": {
      "title": "@Id",
      "type": "string"
    },
    "name": {
      "title": "Name",
      "type": "string"
    },
    "@type": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": [
        "prov:Entity",
        "https://w3id.org/EVI#MLModel"
      ],
      "title": "@Type"
    },
    "author": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      ],
      "title": "Author"
    },
    "description": {
      "title": "Description",
      "type": "string"
    },
    "version": {
      "title": "Version",
      "type": "string"
    },
    "associatedPublication": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Associatedpublication"
    },
    "additionalDocumentation": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Additionaldocumentation"
    },
    "contentUrl": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      ],
      "default": null,
      "title": "Contenturl"
    },
    "isPartOf": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/IdentifierValue"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": [],
      "title": "Ispartof"
    },
    "usedByComputation": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/IdentifierValue"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": [],
      "title": "Usedbycomputation"
    },
    "md5": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "MD5 checksum of the digital object content",
      "title": "Md5"
    },
    "hash": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Hash of the digital object content (if not MD5)",
      "title": "Hash"
    },
    "sha256": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "SHA-256 checksum of the digital object content",
      "title": "Sha256"
    },
    "fairscapeVersion": {
      "default": "1.0.20",
      "title": "Fairscapeversion",
      "type": "string"
    },
    "prov:wasGeneratedBy": {
      "anyOf": [
        {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "$ref": "#/$defs/IdentifierValue"
              }
            ]
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": [],
      "title": "Prov:Wasgeneratedby"
    },
    "prov:wasDerivedFrom": {
      "anyOf": [
        {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "$ref": "#/$defs/IdentifierValue"
              }
            ]
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": [],
      "title": "Prov:Wasderivedfrom"
    },
    "prov:wasAttributedTo": {
      "anyOf": [
        {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "$ref": "#/$defs/IdentifierValue"
              }
            ]
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": [],
      "title": "Prov:Wasattributedto"
    },
    "keywords": {
      "items": {
        "type": "string"
      },
      "title": "Keywords",
      "type": "array"
    },
    "modelType": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Modeltype"
    },
    "framework": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Framework"
    },
    "modelFormat": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Modelformat"
    },
    "trainingDataset": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "items": {
            "$ref": "#/$defs/IdentifierValue"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Trainingdataset"
    },
    "generatedBy": {
      "anyOf": [
        {
          "$ref": "#/$defs/IdentifierValue"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "derivedFrom": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/IdentifierValue"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": [],
      "title": "Derivedfrom"
    },
    "parameters": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Parameters"
    },
    "inputSize": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Inputsize"
    },
    "hasBias": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Hasbias"
    },
    "intendedUseCase": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Intendedusecase"
    },
    "usageInformation": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Usageinformation"
    },
    "baseModel": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Basemodel"
    },
    "url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Url"
    },
    "license": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "License"
    },
    "citation": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Citation"
    }
  },
  "required": [
    "@id",
    "name",
    "author",
    "description",
    "version",
    "keywords"
  ],
  "title": "ModelCard",
  "type": "object"
}