1
from libcpp.vector cimport vector as libcpp_vector
2
from libcpp cimport bool
5
from StringList cimport *
6
from CVMappings cimport *
7
from ControlledVocabulary cimport *
9
cdef extern from "<OpenMS/FORMAT/VALIDATORS/SemanticValidator.h>" namespace "OpenMS::Internal":
11
cdef cppclass SemanticValidator:
13
SemanticValidator(CVMappings mapping, ControlledVocabulary cv) nogil except +
15
bool validate(String filename, StringList errors, StringList warnings) nogil except +
17
# Checks if a CVTerm is allowed in a given path
18
# bool locateTerm(String path, SemanticValidator_CVTerm & parsed_term) nogil except +
20
# Sets the CV parameter tag name (default: 'cvParam')
21
void setTag(String tag) nogil except +
23
# Sets the name of the attribute for accessions in the CV parameter tag name (default: 'accession')
24
void setAccessionAttribute(String accession) nogil except +
26
# Sets the name of the attribute for accessions in the CV parameter tag name (default: 'name')
27
void setNameAttribute(String name) nogil except +
29
# Sets the name of the attribute for accessions in the CV parameter tag name (default: 'value')
30
void setValueAttribute(String value) nogil except +
32
# Set if CV term value types should be check (enabled by default)
33
void setCheckTermValueTypes(bool check) nogil except +
35
# Set if CV term units should be check (disabled by default)
36
void setCheckUnits(bool check) nogil except +
38
# Sets the name of the unit accession attribute (default: 'unitAccession')
39
void setUnitAccessionAttribute(String accession) nogil except +
41
# Sets the name of the unit name attribute (default: 'unitName')
42
void setUnitNameAttribute(String name) nogil except +
44
cdef extern from "<OpenMS/FORMAT/VALIDATORS/SemanticValidator.h>" namespace "OpenMS::Internal::SemanticValidator":
46
cdef cppclass SemanticValidator_CVTerm "OpenMS::Internal::SemanticValidator::CVTerm":
47
SemanticValidator_CVTerm() nogil except +
48
SemanticValidator_CVTerm(SemanticValidator_CVTerm) nogil except +
54
bool has_unit_accession