type: seq
sequence:
  - type: map
    mapping:
      "relation":
        type: str
        required: true
      "namespaces":
        type: seq
        required: true
        sequence:
          - type: str
            required: true
            pattern: /[0-9a-zA-Z\_]+(\:[0-9]{7})?/
      "primary_root_terms":
        type: seq
        required: true
        sequence:
          - type: str
            required: true
            pattern: /[0-9a-zA-Z\_]+\:[0-9]{7}?/
      "cardinality":
        type: number
        required: false
