Awesome
wikidata-properties-dumper
UPDATE: this repository was hosting experimentations at getting a list of all Wikidata properties as JSON before Wikidata SPARQL endpoint was up. Now that it's there, we can do better!
-
get the full list straight from Wikidata Query (try the query, get it as JSON)
-
or, for a pre-formatted version:
- use the
wd props
command from Wikidata CLI - use that dump of
wd props --type
- use Wikidata Propbrowse and its JSON dump
- use the
There are now more than 2400 property ids on wikidata (less active ones though), but no handy standard json version of those, so I made one by hand, per language.
You can find en
, de
, fr
, es
and it
versions already in the ./output
folder.
It looks like this:
{
"P6": "head of government",
"P7": "brother",
"P9": "sister",
"P10": "video",
"P14": "highway marker",
"P15": "road map",
"P16": "highway system",
"P17": "country",
"P18": "image",
...
Properties dumps
How To dump Properties for other languages
Options 1
- create a new query in Quarry, copying this one but replacing
fr
with the 2-letters language code of your choice - copy this repo:
git clone https://github.com/maxlath/wikidata-properties-dumper.git
- add the query id and the json output id to the
./queries.json
file - then run
npm start
and you're done! JSON files are waiting for you in the properties
folder!
Options 2: lazy but slower
- just ask me to add the desired language to the existing dumps :)