@@ -158,14 +158,15 @@ def process_validation_task_by_metadata(
158158
159159
160160def perform_ro_crate_validation (
161- file_path : str , profile_name : str | None , skip_checks_list : Optional [list ] = None
161+ file_path : str , profile_name : str | None , skip_checks_list : Optional [list ] = None , profiles_path : Optional [ str ] = None
162162) -> ValidationResult | str :
163163 """
164164 Validates an RO-Crate using the provided file path and profile name.
165165
166166 :param file_path: The path to the RO-Crate file to validate
167167 :param profile_name: The name of the validation profile to use. Defaults to None. If None, the CRS4 validator will
168168 attempt to determine the profile.
169+ :param profiles_path: The path to the profiles definition directory
169170 :param skip_checks_list: A list of checks to skip, if needed
170171 :return: The validation result.
171172 :raises Exception: If an error occurs during the validation process.
@@ -183,7 +184,8 @@ def perform_ro_crate_validation(
183184 settings = services .ValidationSettings (
184185 rocrate_uri = full_file_path ,
185186 ** ({"profile_identifier" : profile_name } if profile_name else {}),
186- ** ({"skip_checks" : skip_checks_list } if skip_checks_list else {})
187+ ** ({"skip_checks" : skip_checks_list } if skip_checks_list else {}),
188+ ** ({"profiles_path" : profiles_path } if profiles_path else {})
187189 )
188190
189191 return services .validate (settings )
0 commit comments