---
id: "salinity"
kind: "datatype"
status: "draft"
is_pii: false
name: "Salinity"
regexp: "^[-+]?\\d+(?:[.,]\\d+)?\\s?(?:ppt|PSU|psu|g/kg|g/L|g/l|mg/L|mg/l|‰)?$"
categories: ["environment", "chemistry", "values"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/salinity"
---

# Salinity (`salinity`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Salt content of water: in parts per thousand (ppt, ‰) or practical salinity units (PSU) in oceanography (about 35 in sea water), or in grams or milligrams per litre; fresh water is below 0.5 ppt. Water quality sensors usually derive it from the electrical conductivity.

- Parent datatype: [`numeric`](https://registry.apicrafter.io/datatype/numeric.md)
- Personal data (PII): no
- Categories: Environment (protected areas, biodiversity, water, weather, emissions, waste) (environment), Chemistry (chemistry), All measurable values (percentage, amount and e.t.c) (values)
- Countries: global
- Languages: Common to most languages (common)

## Detection

Regular expression (Python `re`):

```
^[-+]?\d+(?:[.,]\d+)?\s?(?:ppt|PSU|psu|g/kg|g/L|g/l|mg/L|mg/l|‰)?$
```

## Examples

- `0.702` — ppt, a freshwater lake
- `35.1 PSU` — sea water
- `fresh` (invalid example) — a class in words

## Metacrafter rules

2 rules: 2 match the field name, 0 match values.

- `salinitybysensorname` (field, `common/environment.yaml`)
- `salinityreadingbyname` (field, `common/observations.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- ru: Солёность

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Salinity>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

JSON: <https://registry.apicrafter.io/api/v1/datatypes/salinity.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/environment/salinity.yaml>
