| 1 | use utf8; | ||
| 2 | |||
| 3 | package SemanticWeb::Schema::MolecularEntity; | ||
| 4 | |||
| 5 | # ABSTRACT: Any constitutionally or isotopically distinct atom | ||
| 6 | |||
| 7 | use v5.14; | ||
| 8 | use Moo; | ||
| 9 | |||
| 10 | extends qw/ SemanticWeb::Schema::BioChemEntity /; | ||
| 11 | |||
| 12 | |||
| 13 | use MooX::JSON_LD 'MolecularEntity'; | ||
| 14 | use Ref::Util qw/ is_plain_hashref /; | ||
| 15 | # RECOMMEND PREREQ: Ref::Util::XS | ||
| 16 | |||
| 17 | use namespace::autoclean; | ||
| 18 | |||
| 19 | our $VERSION = 'v23.0.0'; | ||
| 20 | |||
| 21 | |||
| 22 | has chemical_role => ( | ||
| 23 | is => 'rw', | ||
| 24 | predicate => '_has_chemical_role', | ||
| 25 | json_ld => 'chemicalRole', | ||
| 26 | ); | ||
| 27 | |||
| 28 | |||
| 29 | |||
| 30 | has in_ch_i => ( | ||
| 31 | is => 'rw', | ||
| 32 | predicate => '_has_in_ch_i', | ||
| 33 | json_ld => 'inChI', | ||
| 34 | ); | ||
| 35 | |||
| 36 | |||
| 37 | |||
| 38 | has in_ch_i_key => ( | ||
| 39 | is => 'rw', | ||
| 40 | predicate => '_has_in_ch_i_key', | ||
| 41 | json_ld => 'inChIKey', | ||
| 42 | ); | ||
| 43 | |||
| 44 | |||
| 45 | |||
| 46 | has iupac_name => ( | ||
| 47 | is => 'rw', | ||
| 48 | predicate => '_has_iupac_name', | ||
| 49 | json_ld => 'iupacName', | ||
| 50 | ); | ||
| 51 | |||
| 52 | |||
| 53 | |||
| 54 | has molecular_formula => ( | ||
| 55 | is => 'rw', | ||
| 56 | predicate => '_has_molecular_formula', | ||
| 57 | json_ld => 'molecularFormula', | ||
| 58 | ); | ||
| 59 | |||
| 60 | |||
| 61 | |||
| 62 | has molecular_weight => ( | ||
| 63 | is => 'rw', | ||
| 64 | predicate => '_has_molecular_weight', | ||
| 65 | json_ld => 'molecularWeight', | ||
| 66 | ); | ||
| 67 | |||
| 68 | |||
| 69 | |||
| 70 | has monoisotopic_molecular_weight => ( | ||
| 71 | is => 'rw', | ||
| 72 | predicate => '_has_monoisotopic_molecular_weight', | ||
| 73 | json_ld => 'monoisotopicMolecularWeight', | ||
| 74 | ); | ||
| 75 | |||
| 76 | |||
| 77 | |||
| 78 | has potential_use => ( | ||
| 79 | is => 'rw', | ||
| 80 | predicate => '_has_potential_use', | ||
| 81 | json_ld => 'potentialUse', | ||
| 82 | ); | ||
| 83 | |||
| 84 | |||
| 85 | |||
| 86 | has smiles => ( | ||
| 87 | is => 'rw', | ||
| 88 | predicate => '_has_smiles', | ||
| 89 | json_ld => 'smiles', | ||
| 90 | ); | ||
| 91 | |||
| 92 | |||
| 93 | |||
| 94 | |||
| 95 | |||
| 96 | 1; | ||
| 97 | |||
| 98 | __END__ |