Wikidata Class Hierarchy

The latest update to the wd-extract.py program in my wikidata project (see https://github.com/jimbelton/wikidata for the code) includes the ability to extract the class hierarchy from a wikidata dump file. I’ve also added a new program, wd-diagram.py, that can render the class hierarchy as an ASCII (text) diagram. The entire class hierarchy is huge (60 megabytes), but you can control the depth of the diagram using the –levels option. Here are a couple of examples.

First Level Classes

Here’s the command to generate a diagram of the first level classes:

./wd-diagram.py -l 1 data/20160215-classes.json

And here’s its output:

entity
+-energy
+-disposition
+-mystery
+-molecular_function
+-resource
+-historical source
+-former entity
+-part
+-perception set
+-artificial entity
+-phenomenon
+-mystery
+-Economic entity
+-Bottleneck
+-point in time
+-being
+-cause
+-biological_process
+-state
+-matter
+-sensation set
+-object
+-cellular_component
+-class
+-problem
+-subject
+-Bohrung

First and Second Level Classes

Here’s the command to generate a diagram of the first level classes:

./wd-diagram.py -l 2 data/20160215-classes.json

And here’s its output:

entity
+-energy
|  +-nuclear power
|  +-geothermal energy
|  +-internal energy
|  +-dark energy
|  +-mechanical energy
|  +-marine energy
|  +-Sustainable energy
|  +-electrical energy
|  +-thermal energy
|  +-human energy
|  +-énergie animale
|  +-sound energy
+-disposition
|  +-sense
|  +-influence
|  +-physiological condition
+-mystery
+-molecular_function
|  +-electron carrier activity
|  +-antioxidant activity
|  +-morphogen activity
|  +-structural molecule activity
|  +-transporter activity
|  +-transcription factor activity, protein binding
|  +-chemoattractant activity
|  +-translation regulator activity
|  +-nucleic acid binding transcription factor activity
|  +-binding
|  +-chemorepellent activity
|  +-metallochaperone activity
|  +-nutrient reservoir activity
|  +-protein tag
|  +-molecular function regulator
|  +-molecular transducer activity
|  +-D-alanyl carrier activity
+-resource
|  +-asset
+-historical source
|  +-source text
|  +-source of statements in Wikidata
|  +-Tradition
|  +-Überrest
|  +-historical document
+-former entity
|  +-defunct sports team
|  +-historical region
|  +-defunct cycling race
|  +-former building or structure
|  +-former administrative territorial entity
|  +-historic ocean
|  +-withdrawn identifier value
|  +-destroyed artwork
|  +-former cemetery
|  +-former settlement
|  +-paleocontinent
|  +-Extinct
|  +-empoldered inlet
|  +-defunct railroad of North America
|  +-lost land
|  +-historical ethnical group
|  +-исчезнувшие улицы Екатеринбурга
|  +-extinct language
|  +-Defunct New Jersey State Interscholastic Athletic Association conferences
|  +-Defunct North American collegiate sororities
|  +-Defunct placenames of New Hampshire
|  +-discontinued post office
|  +-extinct Kannada literature
|  +-extinct radionuclide
|  +-Cadet Corps
+-part
|  +-ingredient
|  +-component
|  +-spare part
|  +-part of ship
|  +-upper part
|  +-lower part
|  +-left part
|  +-right part
|  +-middle part
|  +-musical instrument part
|  +-chapter
|  +-part of a plant
|  +-anatomical structure
|  +-mechanism
|  +-software component
+-perception set
|  +-metacognition
|  +-Umwelt
|  +-nociception
|  +-somatosensory system
|  +-five senses
|  +-speech perception
|  +-transduction
+-artificial entity
|  +-wikibase data model possible value for a claim
|  +-contributing object
|  +-work
|  +-artefact
+-phenomenon
|  +-phenomenon
+-mystery
+-Economic entity
+-Bottleneck
|  +-bottleneck
+-point in time
|  +-Kellaaeg
|  +-epoch
+-being
|  +-State
|  +-Intermediate state
|  +-life
|  +-state
+-cause
|  +-excessive speed
|  +-end cause
|  +-signal passed at danger
+-biological_process
|  +-evolution
|  +-reproduction
|  +-metabolic process
|  +-growth
|  +-response to stimulus
|  +-rhythmic process
|  +-signaling
|  +-cellular process
|  +-reproductive process
|  +-immune system process
|  +-evolutionary process
|  +-temperature regulation
|  +-genetic recombination
|  +-adaptive radiation
|  +-single-organism process
|  +-multi-organism process
|  +-locomotion
|  +-detoxification
|  +-cell aggregation
|  +-cell killing
|  +-biological regulation
|  +-localization
|  +-presynaptic process involved in synaptic transmission
|  +-developmental process
|  +-biological adhesion
|  +-cellular component organization or biogenesis
|  +-biological phase
|  +-multicellular organismal process
|  +-S phase
|  +-mental process
|  +-decomposition
|  +-biological function
|  +-Psychological resilience
|  +-mutation
|  +-Category:Animal locomotion
|  +-interphase
|  +-animal locomotion
|  +-behavior
+-state
|  +-liberty
|  +-peace
|  +-physiological condition
+-matter
|  +-Plage
|  +-particle
|  +-organic matter
|  +-field
|  +-mineral group
|  +-material
|  +-foam
|  +-coma
|  +-QCD matter
|  +-combustible matter
|  +-modelling clay
|  +-Woodchips
|  +-chemical substance
|  +-dark matter
|  +-antimatter
|  +-toxic industrial products
+-sensation set
|  +-absolute threshold of hearing
|  +-depth perception
|  +-color constancy
|  +-consonance and dissonance
|  +-Hearing range
|  +-Visual system
|  +-roughness
|  +-sound localization
|  +-pain
+-object
|  +-magnet
|  +-standard
|  +-unidentified object
|  +-hypothetical object
|  +-kladblok
|  +-dubbeldekker
|  +-культавы аб’ект
|  +-nutrition
|  +-object
|  +-religious object
|  +-physical object
|  +-collectable
|  +-sign
|  +-property
|  +-abstract object
|  +-candle
+-cellular_component
|  +-extracellular region
|  +-cell part
|  +-extracellular region part
|  +-synapse
|  +-cell junction
|  +-extracellular matrix
|  +-nucleoid
|  +-macromolecular complex
|  +-organelle part
|  +-extracellular matrix component
|  +-virion part
|  +-membrane part
|  +-other organism part
|  +-mitochondrion-associated adherens complex
|  +-synapse part
|  +-symplast
|  +-membrane-enclosed lumen
|  +-virion
|  +-viral occlusion body
|  +-supramolecular fiber
|  +-other organism
|  +-organelle
|  +-cell
+-class
|  +-vessel class
+-problem
|  +-social issue
|  +-health problem
|  +-two-body problem
|  +-computational problem
|  +-Economic problem
|  +-go fever
+-subject
|  +-person
|  +-legal entity
|  +-player
+-Bohrung
+-Blind hole

Advertisements

About jimbelton

I'm a software developer, and a writer of both fiction and non-fiction, and I blog about movies, books, and philosophy. My interest in religious philosophy and the search for the truth inspires much of my writing.
This entry was posted in programming and tagged , , , . Bookmark the permalink.

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s