def validate_ontology_file_schema(value): schema_path = os.path.join(settings.STATIC_ROOT, APP_LABEL, "xml/ontology.xsd") return validate_file_schema(value,schema_path)
def validate_vocabulary_file_schema(value): schema_path = os.path.join(settings.STATIC_ROOT, APP_LABEL, "xml/vocabulary.xsd") return validate_file_schema(value,schema_path)
def validate_ontology_file_schema(value): schema_path = os.path.join(settings.STATIC_ROOT, APP_LABEL, "schemas/qconfig_ontology.schema.json") return validate_file_schema(value, schema_path)
def validate_categorization_file_schema(value): schema_path = os.path.join(settings.STATIC_ROOT, APP_LABEL, "xml/categorization.xsd") return validate_file_schema(value,schema_path)