Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Parse input from API-X engine and determine content model(s) of resource
  • Parse configuration for content model(s)
  • Scan user-provided properties
  • If RDF type restriction (see point in config roles) are defined, query repo index to determine if the resource if its container are of the RDF type specified in the config
  • Loop over property validation rules in config file:
    • If an RDF type restriction (see point in config roles) is defined, query repo or index to determine if the resource or its container are of the RDF type specified in the config
      • If result is positive, apply validation rule against user-provided property value(s)
      • If negative, skip validation
    • If no RDF type restriction is defined, apply validation
    • If validation passes:
      • if a post-success action is defined, execute it
      • if no post-success action is defined, move on to next rule
    • If validation fails:
      • if a post-failure action is defined, execute it
      • if no post-failure action is defined, abort whole process and raise an exception
  • After all rules have been parsed, return to API-X engine

...