Wikidata · Schema

Property

Property schema from Wikidata REST API & MediaWiki API

Knowledge GraphLinked DataOpen DataSemantic WebSPARQLWikipedia

Properties

Name Type Description
id string
type string
datatype string
labels object
descriptions object
View JSON Schema on GitHub

JSON Schema

wikidata-property-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-property-schema.json",
  "title": "Property",
  "description": "Property schema from Wikidata REST API & MediaWiki API",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^P\\d+$",
      "example": "P31"
    },
    "type": {
      "type": "string",
      "enum": [
        "property"
      ]
    },
    "datatype": {
      "type": "string",
      "enum": [
        "wikibase-item",
        "wikibase-property",
        "string",
        "monolingualtext",
        "multilingual-text",
        "quantity",
        "time",
        "globe-coordinate",
        "url",
        "commonsMedia",
        "external-id",
        "math",
        "geo-shape",
        "tabular-data",
        "musical-notation",
        "lexeme",
        "sense",
        "form"
      ]
    },
    "labels": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "descriptions": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  }
}