Wikidata · JSON Structure

Wikidata Statement Create Structure

StatementCreate schema from Wikidata REST API & MediaWiki API

Type: object Properties: 6 Required: 2
Knowledge GraphLinked DataOpen DataSemantic WebSPARQLWikipedia

StatementCreate is a JSON Structure definition published by Wikidata, describing 6 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

property value rank qualifiers references comment

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wikidata/refs/heads/main/json-structure/wikidata-statement--create-structure.json",
  "description": "StatementCreate schema from Wikidata REST API & MediaWiki API",
  "type": "object",
  "properties": {
    "property": {
      "type": "object",
      "required": [
        "id"
      ],
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^P\\d+$"
        }
      }
    },
    "value": {
      "$ref": "#/components/schemas/DataValue"
    },
    "rank": {
      "type": "string",
      "enum": [
        "preferred",
        "normal",
        "deprecated"
      ],
      "default": "normal"
    },
    "qualifiers": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "references": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "comment": {
      "type": "string"
    }
  },
  "required": [
    "property",
    "value"
  ],
  "name": "StatementCreate"
}