Advanced

DESCRIBE

Explore entities by retrieving their descriptions. DESCRIBE returns an RDF graph containing useful information about specified resources.

Understanding DESCRIBE

DESCRIBE queries return an RDF graph that "describes" one or more resources. Unlike SELECT which returns specific bindings or CONSTRUCT which uses a template, DESCRIBE leaves the exact output to the SPARQL endpoint.

Typical DESCRIBE output includes:

The exact content varies by endpoint — each implementation decides what constitutes a useful description.

Basic DESCRIBE Examples

Describe a Single Entity
Run ↗
DESCRIBE wd:Q42

The simplest DESCRIBE query just names an entity. This returns whatever the Wikidata endpoint considers a useful description of Douglas Adams (Q42) — typically including labels, descriptions, and key properties.

Describe Multiple Entities
Run ↗
DESCRIBE wd:Q90 wd:Q84 wd:Q64

You can describe multiple entities in a single query. This returns combined descriptions of Paris (Q90), London (Q84), and Berlin (Q64).

DESCRIBE with WHERE Clause

Describe Query Results
Run ↗
DESCRIBE ?country
WHERE {
  ?country wdt:P31 wd:Q6256 ;
           wdt:P30 wd:Q49 .
}
LIMIT 5

DESCRIBE can use a WHERE clause to find entities dynamically. This query describes five countries (Q6256) located in North America (Q49).

Describe Related Entities
Run ↗
DESCRIBE ?capital
WHERE {
  wd:Q142 wdt:P36 ?capital .
}

This query finds France's capital (P36) and then describes that entity. It's useful when you want to explore an entity that you found through a relationship.

DESCRIBE for Exploration

Describe a Property
Run ↗
DESCRIBE wdt:P31

DESCRIBE works on properties too, not just entities. This returns information about the "instance of" property (P31), including its label, description, and constraints.

Describe Highest-Population City
Run ↗
DESCRIBE ?city
WHERE {
  ?city wdt:P31 wd:Q515 ;
        wdt:P1082 ?population .
}
ORDER BY DESC(?population)
LIMIT 1

Combine DESCRIBE with sorting to explore specific entities. This finds and describes the city with the highest recorded population in Wikidata.

DESCRIBE vs SELECT vs CONSTRUCT

Each query form serves different purposes:

QueryBest ForOutput Control
SELECTSpecific data extractionYou specify exactly what you want
CONSTRUCTData transformationYou define the output structure
DESCRIBEExploration and discoveryEndpoint decides what's useful

Use DESCRIBE when you want to explore an entity without knowing exactly what properties it has, or when you want a quick overview of what information is available.

Key Entities Used in Examples

EntityDescription
wd:Q42Douglas Adams
wd:Q49North America
wd:Q64Berlin
wd:Q84London
wd:Q90Paris
wd:Q142France
wd:Q515City
wd:Q6256Country
wdt:P30Continent
wdt:P31Instance of
wdt:P36Capital
wdt:P1082Population