Skip to content

Commit

Permalink
Added elucidations to atom symbols.
Browse files Browse the repository at this point in the history
  • Loading branch information
jesper-friis committed Jun 1, 2024
1 parent fc321fc commit 57d377f
Show file tree
Hide file tree
Showing 2 changed files with 571 additions and 452 deletions.
9 changes: 5 additions & 4 deletions disciplines/periodictable.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class hasChemicalSymbol(onto.hasProperty):
name.capitalize() + 'Symbol', (onto.ChemicalElement, )
)
Element.is_a.append(onto.hasSymbolValue.value(symbol))
Element.elucidation.append(en(f'The symbol that stands for the {name.lower()} atom.'))

AtomClass = types.new_class(name.capitalize() + 'Atom', (onto.Atom, ))
AtomClass.elucidation.append(en('Atom subclass for %s.' % name.lower()))
Expand All @@ -106,10 +107,10 @@ class hasChemicalSymbol(onto.hasProperty):
'International license (CC BY 4.0).'))

onto.metadata.title.append(en('Periodic table'))
onto.metadata.creator.append(en('<https://orcid.org/0000-0002-1560-809X>'))
onto.metadata.creator.append(en('<https://orcid.org/0000-0001-8869-3718>'))
onto.metadata.creator.append(en('<https://orcid.org/0000-0003-3805-8761>'))
onto.metadata.publisher.append(en('<https://emmc.eu>'))
onto.metadata.creator.append(chemistry['Jesper Friis'])
onto.metadata.creator.append(chemistry["Francesca Lønstad Bleken"])
onto.metadata.creator.append(chemistry["Emanuele Ghedini"])
onto.metadata.publisher.append(chemistry["EMMC ASBL"])
onto.metadata.license.append(en(
'https://creativecommons.org/licenses/by/4.0/legalcode'))
onto.metadata.versionInfo.append(en(version))
Expand Down
Loading

0 comments on commit 57d377f

Please sign in to comment.