Skip to content

Is there an endpoint to learn about the available validation profiles? #247

Open

Description

@jmfernandez

I have several questions.

Is there a way to obtain the list of cached profiles available to use in the validation? We have locally deployed the service for its use within EOSC ENTRUST WP21 demonstration, but we don't know whether it is performing only a simple validation of the RO-Crate base profile or it is also including the validation of the other additional ones been detected.

Even now, when the validation is properly performed, it is not reporting the profile URI, but a short name:

{
  "created_at":null,
  "detail":{
    "issues":[],
    "meta":{
      "version":"0.2"
    },
    "passed":true,
    "validation_settings":{
      "abort_on_first":false,
      "enable_profile_inheritance":true,
      "profile_identifier":"rocrate-1.1",
      "requirement_severity":"REQUIRED",
      "rocrate_validator_version":"0.11.4"
    }
  },
  "profile":null,
  "status":"valid"
}

And when a profile name is specified and it does not match one of the cached ones, it is not giving a clue about the valid profile names:

{
  "created_at":null,
  "error":"Profile not found: 'process_run_crate'",
  "profile":"process_run_crate",
  "status":"error"
}

Also, is it possible to validate the compliance against several RO-Crate profiles at once?

Thanks in advance!

Activity

  1. douglowe commented on Nov 12, 2026

    @douglowe
    Collaborator

    Endpoint for validation profiles - sounds like a good plan, I'll create an issue for this.

    Error messages when profile names don't match cached ones - I don't think the roc-validator will do this, but I think we need a step within our workflow that checks profile availability, and returns an error before it gets to call the validator. I'll create an issue for this too.

    Validation against multiple profiles - the validator will validate against all profiles that the specified profile depends on. Do you have a use case where you want to validate against unrelated profiles?

  2. jmfernandez commented on Nov 12, 2026

    @jmfernandez
    Author

    Validation against multiple profiles - the validator will validate against all profiles that the specified profile depends on. Do you have a use case where you want to validate against unrelated profiles?

    Yes. Yesterday I realised that, by default, the submitted content of an ro-crate-metadata.json from a WRROC was being validated against the detected core RO-Crate profile, but the other additional profiles, Workflow RO-Crate, Process Run Crate and Workflow Run Crate weren't. So, once I learned the associated profile names to those profiles to be used with the service, I sent as many validation jobs as profiles, and I got that the used ro-crate-metadata.json was compliant with all the profiles but the Workflow Run Crate one.

  3. self-assigned this
    on Nov 13, 2026
  4. douglowe commented on Nov 19, 2026

    @douglowe
    Collaborator

    Good point - we'll work on adding the validation of multiple profiles too: #257

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions