SemanticValidator

class pyopenms.SemanticValidator

Bases: object

Cython 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

__init__

Cython signature: void SemanticValidator(CVMappings mapping, ControlledVocabulary cv)

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)

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)