Home | Trees | Indices | Help |
|
---|
|
A couple 'synonym:value' inherited from the class TaggedValue. Used to manage synonym tags, exact_synonym tags, broad_synonym tags and narrow_synonym tags.
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
_match_scope = re.compile(r'
|
|||
Inherited from |
|
|||
Inherited from |
|
Constructor of the class SynonymValue.
Note: SynonymValue is composed of a tag, a value, a scope, a list of types and dbxrefs. The constructor calls the TaggedValue constructor. A regular expression is used to extract 'definition' from TaggedValue.value (definition is a not quoted TaggedValue.value). Definition is saved as the new value of the class SynonymValue. A regular expression is used to extract 'attributes' from the rest of the string. Attributes may contain an optional synonym scope and an optional list of synonym types. The scope is extracted from attributes or set by default to 'RELATED'. It is saved as the scope of the class. The types are the rest of the attributes and are saved as the list of types of the class. For deprecated tags 'exact_synonym', 'broad_synonym' and 'narrow_synonym', tag is set to 'synonym' and scope is set respectively to 'EXACT', 'BROAD' and 'NARROW'. A regular expression is used to extract 'dbxrefs' from the TaggedValue.value without the definition (dbxrefs are between brackets and definition can be so). dbxrefs are saved. |
hash(x)
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jul 22 10:48:36 2009 | http://epydoc.sourceforge.net |