{
  "@context": {
    "cdi": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/",
    "ex": "https://example.org/"
  },
  "@id": "ex:codelist/qualityFlag",
  "@type": [
    "cdi:CodeList"
  ],
  "cdi:name": [
    {
      "@type": [
        "cdi:ObjectName"
      ],
      "cdi:name": "qualityFlag"
    }
  ],
  "cdi:identifier": {
    "@type": [
      "cdi:Identifier"
    ],
    "cdi:uri": "https://example.org/codelist/qualityFlag"
  },
  "cdi:purpose": {
    "@type": [
      "cdi:InternationalString"
    ],
    "cdi:languageSpecificString": {
      "@type": [
        "cdi:LanguageString"
      ],
      "cdi:content": "Single-letter quality flags accompanying each daily air-temperature value.",
      "cdi:language": "en"
    }
  },
  "cdi:allowsDuplicates": false,
  "cdi:references": {
    "@id": "ex:categoryset/quality",
    "@type": [
      "cdi:CategorySet"
    ],
    "cdi:name": [
      {
        "@type": [
          "cdi:ObjectName"
        ],
        "cdi:name": "qualityCategories"
      }
    ],
    "cdi:has_Category": [
      {
        "@id": "ex:cat/quality/good",
        "@type": [
          "cdi:Category"
        ],
        "cdi:name": [
          {
            "@type": [
              "cdi:ObjectName"
            ],
            "cdi:name": "good"
          }
        ],
        "cdi:definition": {
          "@type": [
            "cdi:InternationalString"
          ],
          "cdi:languageSpecificString": {
            "@type": [
              "cdi:LanguageString"
            ],
            "cdi:content": "Value passed all quality-control checks.",
            "cdi:language": "en"
          }
        }
      },
      {
        "@id": "ex:cat/quality/suspect",
        "@type": [
          "cdi:Category"
        ],
        "cdi:name": [
          {
            "@type": [
              "cdi:ObjectName"
            ],
            "cdi:name": "suspect"
          }
        ],
        "cdi:definition": {
          "@type": [
            "cdi:InternationalString"
          ],
          "cdi:languageSpecificString": {
            "@type": [
              "cdi:LanguageString"
            ],
            "cdi:content": "Value failed at least one quality-control check and should be used with caution.",
            "cdi:language": "en"
          }
        }
      },
      {
        "@id": "ex:cat/quality/missing",
        "@type": [
          "cdi:Category"
        ],
        "cdi:name": [
          {
            "@type": [
              "cdi:ObjectName"
            ],
            "cdi:name": "missing"
          }
        ],
        "cdi:definition": {
          "@type": [
            "cdi:InternationalString"
          ],
          "cdi:languageSpecificString": {
            "@type": [
              "cdi:LanguageString"
            ],
            "cdi:content": "No value was recorded for this observation.",
            "cdi:language": "en"
          }
        }
      }
    ]
  },
  "cdi:has_Code": [
    {
      "@id": "ex:code/quality/G",
      "@type": [
        "cdi:Code"
      ],
      "cdi:identifier": {
        "@type": [
          "cdi:Identifier"
        ],
        "cdi:uri": "https://example.org/code/qualityFlag/G"
      }
    },
    {
      "@id": "ex:code/quality/S",
      "@type": [
        "cdi:Code"
      ],
      "cdi:identifier": {
        "@type": [
          "cdi:Identifier"
        ],
        "cdi:uri": "https://example.org/code/qualityFlag/S"
      }
    },
    {
      "@id": "ex:code/quality/M",
      "@type": [
        "cdi:Code"
      ],
      "cdi:identifier": {
        "@type": [
          "cdi:Identifier"
        ],
        "cdi:uri": "https://example.org/code/qualityFlag/M"
      }
    }
  ]
}