Another question is how we identify items of isotopes. There seems to be no consensus how to use p31 and p279 for isotopes (Including some poorly thought out edits by me). Right now I would favour constructing the tree like this example:
carbon-12 <p279> isotopes of carbon <p279> isotope
But I am also open for other suggestions.
I'm new to phabricator but this sounds like fun!
Suggestions in response to above questions:
- We could try to make every stable nuclide an instance of "stable isotope" (Q878130). I don't believe it's been used for that yet but it seems the perfect candidate to identify.
- To find all nuclides the query I used in this auto list of the nuclides should work - it's CLAIM[31:(tree)] - i.e. all instances from the subclass tree of 'isotope' (Q25276).
Also I've added 'half-life' to a number of the nuclides but we should get a more complete data input if possible somehow from the NNDC list or elsewhere - coloring by half-life is the key to this chart here: http://www.nndc.bnl.gov/nudat2/reCenter.jsp?z=88&n=140
By the way, the standard chart uses neutron number on the horizontal axis and proton number (i.e. the "atomic number" property) on the vertical. Every legitimate nuclide in wikidata seems to have those set correctly (I had to correct a handful last week but most were right).
I hacked on the periodic table code to get a very bare-bones nuclides code working... see files uploaded (nuclides.py has the main content, units.py is to do something with half-life data for now, nu_app.py runs the flask app, index.html is the template display - needs a lot of styling!)
I've never used Gerrit - I guess it's gerrit.wikimedia.org? phabricator/tools is the project? How does one get an account there?
I've made a few changes but a couple of things still in progress - it's getting closer, here's an image of what it looks like right now:
When you hover over a box in the chart it shows the label, and allows you to link to the wikidata page for that isotope. That part's nice...
I need to handle the 'm' nuclides (excited state isomers), also find some way of identifying the stable nuclides. The chart is color-coded by half-life (but not many nuclides have half lives entered yet).