{
  "id": "ph_value",
  "kind": "datatype",
  "status": "draft",
  "name": "pH value",
  "doc": "pH of a water sample, a soil or a solution: a number on the scale from 0 to 14, usually with one or two decimals, written with a decimal point or comma. Soil tables give the pH in water and in a salt solution in separate columns (pH H2O, pH KCl, pH CaCl2; pHwater, phLevel_calciumChloride), water quality tables next to temperature and conductivity. A number alone does not tell a pH from any other measure, so a value is a pH only in a field named after it (pH of the horizons of the soil profile database of the Armenian Soil Information System).",
  "parent": "numeric",
  "is_pii": false,
  "categories": [
    "chemistry",
    "environment",
    "values"
  ],
  "langs": [
    "common"
  ],
  "classification": "categorical",
  "regexp": "^(?:(?:\\d|1[0-3])(?:[.,]\\d{1,3})?|14(?:[.,]0{1,3})?)$",
  "examples": [
    {
      "value": "8.1",
      "description": "Soil horizon, Armenian Soil Information System",
      "valid": true
    },
    {
      "value": "7",
      "description": "Whole number",
      "valid": true
    },
    {
      "value": "4.25",
      "description": "Two decimals",
      "valid": true
    },
    {
      "value": "6,8",
      "description": "Decimal comma",
      "valid": true
    },
    {
      "value": "15.2",
      "description": "Above the scale",
      "valid": false
    },
    {
      "value": "-1",
      "description": "Below the scale",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/PH"
    }
  ],
  "translations": {
    "ru": {
      "name": "Водородный показатель (pH)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "phbyname",
        "type": "field",
        "match": "regex",
        "file": "common/environment.yaml"
      },
      {
        "rule": "phbysensorname",
        "type": "field",
        "match": "regex",
        "file": "common/environment.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/any/chemistry/ph_value.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/chemistry/ph_value.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/chemistry/ph_value.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/ph_value",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/ph_value.json"
  }
}