Wikidata · Schema

DataValue

DataValue schema from Wikidata REST API & MediaWiki API

Knowledge GraphLinked DataOpen DataSemantic WebSPARQLWikipedia

Properties

Name Type Description
type string
content object Value content — depends on property datatype
View JSON Schema on GitHub

JSON Schema

wikidata-data--value-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-data--value-schema.json",
  "title": "DataValue",
  "description": "DataValue schema from Wikidata REST API & MediaWiki API",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "value",
        "somevalue",
        "novalue"
      ]
    },
    "content": {
      "description": "Value content \u2014 depends on property datatype",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    }
  }
}