Wikidata · Schema

StatementCreate

StatementCreate schema from Wikidata REST API & MediaWiki API

Knowledge GraphLinked DataOpen DataSemantic WebSPARQLWikipedia

Properties

Name Type Description
property object
value object
rank string
qualifiers array
references array
comment string
View JSON Schema on GitHub

JSON Schema

wikidata-statement--create-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wikidata/refs/heads/main/json-schema/wikidata-statement--create-schema.json",
  "title": "StatementCreate",
  "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"
  ]
}