Skip to content

PID record validation #10

@ghost

Description

Motivation

It would be nice to show whether the PID record is 'valid'. To do this there are two methods:

  1. Kernel information profiles:
    A kernel information profile (KIP) defines a basic schema of a PID record. It does that by declaring mandatory/optional properties and the cardinality (How often is it repeatable?), name, type and a description of these properties. KIPs are often domain or use case specific. This gives the user useful information regarding the types and values in a PID record in a specific use case.

  2. Regex
    When resolving a data type you can (usually) resolve this type to a more generic type (eg. dateCreated --> date-time-rfc3339) which sometime has a regex in its record. This implies that the same regex is also applicable to the data type that you were originally resolving and a value in the PID record matching this type must match this record.


Goals

  • Implement validation based on the kernel information profile
  • Implement validation based on type regex
  • Show user-friendly warning or error
  • Enable user to deactivate validation and warning

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions