How to get a list of all Wikidata properties?

What is the Wikidata API equivalent to this page listing all known Wikidata properties? I would like to find a property, for example. doctoral student and return P184.

A similar function exists for elements , but I cannot find the equivalent of properties.

+4
source share
4 answers

Use action=wbsearchentitieswithtype=property . Wikidata API document here , find "= wb" to get special Wikipedia-specific features.

+6
source

small script API wikidata action = wbgetentities. json

:

Pid:

, ( )

: @nerab answer, wikidata-properties-dumper, Quarry SQL: :)

2. , SPARQL , Wikidata CLI: wd props

+4

@maxlath, Quarry.

Wikidata

http://quarry.wmflabs.org/run/45013/output/1/json

This specific list is in English, but the query can be changed for other languages.

+2
source

You can use this SPARQL query: it returns the property name, description and comma, also known as labels from the English language:

SELECT ?property ?propertyLabel ?propertyDescription (GROUP_CONCAT(DISTINCT(?altLabel); separator = ", ") AS ?altLabel_list) WHERE {
    ?property a wikibase:Property .
    OPTIONAL { ?property skos:altLabel ?altLabel . FILTER (lang(?altLabel) = "en") }
    SERVICE wikibase:label { bd:serviceParam wikibase:language "en" .}
 }
GROUP BY ?property ?propertyLabel ?propertyDescription
LIMIT 5000
+1
source

All Articles