SemanticValidator
- class pyopenms.SemanticValidator
Bases:
objectCython implementation of _SemanticValidator
Documentation is available at http://www.openms.de/current_doxygen/html/classOpenMS::Internal_1_1SemanticValidator.html
- __init__()
Cython signature: void SemanticValidator(CVMappings mapping, ControlledVocabulary cv)
Methods
Cython signature: void SemanticValidator(CVMappings mapping, ControlledVocabulary cv)
Cython signature: bool locateTerm(String path, SemanticValidator_CVTerm & parsed_term) Checks if a CVTerm is allowed in a given path
Cython signature: void setAccessionAttribute(String accession) Sets the name of the attribute for accessions in the CV parameter tag name (default 'accession')
Cython signature: void setCheckTermValueTypes(bool check) Sets if CV term value types should be check (enabled by default)
Cython signature: void setCheckUnits(bool check) Sets if CV term units should be check (disabled by default)
Cython signature: void setNameAttribute(String name) Sets the name of the attribute for accessions in the CV parameter tag name (default 'name')
Cython signature: void setTag(String tag) Sets the CV parameter tag name (default 'cvParam')
Cython signature: void setUnitAccessionAttribute(String accession) Sets the name of the unit accession attribute (default 'unitAccession')
Cython signature: void setUnitNameAttribute(String name) Sets the name of the unit name attribute (default 'unitName')
Cython signature: void setValueAttribute(String value) Sets the name of the attribute for accessions in the CV parameter tag name (default 'value')
Cython signature: bool validate(String filename, StringList errors, StringList warnings)
- locateTerm()
Cython signature: bool locateTerm(String path, SemanticValidator_CVTerm & parsed_term) Checks if a CVTerm is allowed in a given path
- setAccessionAttribute()
Cython signature: void setAccessionAttribute(String accession) Sets the name of the attribute for accessions in the CV parameter tag name (default ‘accession’)
- setCheckTermValueTypes()
Cython signature: void setCheckTermValueTypes(bool check) Sets if CV term value types should be check (enabled by default)
- setCheckUnits()
Cython signature: void setCheckUnits(bool check) Sets if CV term units should be check (disabled by default)
- setNameAttribute()
Cython signature: void setNameAttribute(String name) Sets the name of the attribute for accessions in the CV parameter tag name (default ‘name’)
- setTag()
Cython signature: void setTag(String tag) Sets the CV parameter tag name (default ‘cvParam’)
- setUnitAccessionAttribute()
Cython signature: void setUnitAccessionAttribute(String accession) Sets the name of the unit accession attribute (default ‘unitAccession’)
- setUnitNameAttribute()
Cython signature: void setUnitNameAttribute(String name) Sets the name of the unit name attribute (default ‘unitName’)
- setValueAttribute()
Cython signature: void setValueAttribute(String value) Sets the name of the attribute for accessions in the CV parameter tag name (default ‘value’)
- validate()
Cython signature: bool validate(String filename, StringList errors, StringList warnings)