{
  "datasetId": "price-pair:USA:TUR",
  "title": "United States to Turkey export unit values by HS6 product (2017–2023)",
  "format": "CSV",
  "columns": [
    "year",
    "exporter_iso3",
    "importer_iso3",
    "hs_code",
    "unit_value_usd_per_ton",
    "quantity_metric_tons",
    "trade_value_usd",
    "market_median_price_usd_per_ton",
    "market_min_price_usd_per_ton",
    "market_max_price_usd_per_ton",
    "num_price_competitors",
    "price_vs_median_pct",
    "price_position"
  ],
  "columnTypes": {
    "year": "UInt16",
    "exporter_iso3": "FixedString(3)",
    "importer_iso3": "FixedString(3)",
    "hs_code": "FixedString(6)",
    "unit_value_usd_per_ton": "Float64",
    "quantity_metric_tons": "Float64",
    "trade_value_usd": "Float64",
    "market_median_price_usd_per_ton": "Float64",
    "market_min_price_usd_per_ton": "Float64",
    "market_max_price_usd_per_ton": "Float64",
    "num_price_competitors": "UInt32",
    "price_vs_median_pct": "Nullable(Float64)",
    "price_position": "Nullable(String)"
  },
  "records": 18477,
  "coverage": {
    "firstYear": 2017,
    "lastYear": 2023
  },
  "source": "BACI bilateral trade flows (202601)",
  "provider": "CEPII",
  "terms": "Etalab 2.0 Open Licence",
  "termsUrl": "https://www.etalab.gouv.fr/wp-content/uploads/2018/11/open-licence.pdf",
  "rowMeaning": "exporting country, importing country, HS6 product, and reported year",
  "guidance": "Historical unit values divide reported value by quantity in metric tons. They are not current selling prices or quotes. The newest record in this file is from 2023.",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.yugalinks.org/datasets/v1/mid-size-csv-1/price-pair-united-states-to-turkey-export-unit-values-usa-tur/schema.json",
  "description": "Field definitions and a JSON Schema for the sample records. The complete dataset is the linked CSV file.",
  "type": "object",
  "required": [
    "datasetId",
    "title",
    "columns",
    "rows",
    "rowMeaning",
    "description",
    "pageUrl",
    "downloadUrl",
    "schemaUrl",
    "records",
    "sampleRecords",
    "coverage",
    "sources"
  ],
  "properties": {
    "datasetId": {
      "const": "price-pair:USA:TUR"
    },
    "title": {
      "type": "string",
      "minLength": 1
    },
    "description": {
      "type": "string",
      "minLength": 50
    },
    "columns": {
      "const": [
        "year",
        "exporter_iso3",
        "importer_iso3",
        "hs_code",
        "unit_value_usd_per_ton",
        "quantity_metric_tons",
        "trade_value_usd",
        "market_median_price_usd_per_ton",
        "market_min_price_usd_per_ton",
        "market_max_price_usd_per_ton",
        "num_price_competitors",
        "price_vs_median_pct",
        "price_position"
      ]
    },
    "rowMeaning": {
      "type": "string",
      "minLength": 1
    },
    "pageUrl": {
      "const": "https://www.yugalinks.org/datasets/v1/mid-size-csv-1/price-pair-united-states-to-turkey-export-unit-values-usa-tur"
    },
    "downloadUrl": {
      "const": "https://www.yugalinks.org/datasets/v1/mid-size-csv-1/price-pair-united-states-to-turkey-export-unit-values-usa-tur/data.csv"
    },
    "schemaUrl": {
      "const": "https://www.yugalinks.org/datasets/v1/mid-size-csv-1/price-pair-united-states-to-turkey-export-unit-values-usa-tur/schema.json"
    },
    "records": {
      "const": 18477,
      "description": "Total records in the complete CSV, not the number of sample rows."
    },
    "sampleRecords": {
      "const": 5
    },
    "coverage": {
      "const": {
        "firstYear": 2017,
        "lastYear": 2023
      }
    },
    "sources": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object"
      }
    },
    "rows": {
      "type": "array",
      "minItems": 5,
      "maxItems": 5,
      "items": {
        "$ref": "#/$defs/row"
      },
      "description": "Example records only. Every row follows the original CSV column names and order."
    }
  },
  "$defs": {
    "row": {
      "type": "object",
      "required": [
        "year",
        "exporter_iso3",
        "importer_iso3",
        "hs_code",
        "unit_value_usd_per_ton",
        "quantity_metric_tons",
        "trade_value_usd",
        "market_median_price_usd_per_ton",
        "market_min_price_usd_per_ton",
        "market_max_price_usd_per_ton",
        "num_price_competitors",
        "price_vs_median_pct",
        "price_position"
      ],
      "additionalProperties": false,
      "properties": {
        "year": {
          "title": "Year",
          "description": "Reported calendar year.",
          "type": "integer",
          "minimum": 2017,
          "maximum": 2023
        },
        "exporter_iso3": {
          "title": "Exporting country code",
          "description": "Three-letter code for the country exporting the goods; preserve as text.",
          "type": "string",
          "pattern": "^[A-Z]{3}$",
          "minLength": 3,
          "maxLength": 3
        },
        "importer_iso3": {
          "title": "Destination country code",
          "description": "Three-letter code for the country receiving the goods; preserve as text.",
          "type": "string",
          "pattern": "^[A-Z]{3}$",
          "minLength": 3,
          "maxLength": 3
        },
        "hs_code": {
          "title": "HS6 product code",
          "description": "Six-digit Harmonized System (HS6) code identifying the product category; preserve leading zeros.",
          "type": "string",
          "pattern": "^[0-9]{6}$",
          "minLength": 6,
          "maxLength": 6
        },
        "unit_value_usd_per_ton": {
          "title": "Historical unit value",
          "description": "Historical value divided by quantity; not a current selling price.",
          "type": "number",
          "unit": "USD per metric ton"
        },
        "quantity_metric_tons": {
          "title": "Quantity",
          "description": "Quantity in metric tons.",
          "type": "number",
          "unit": "metric ton"
        },
        "trade_value_usd": {
          "title": "Reported export value",
          "description": "Reported merchandise value in US dollars.",
          "type": "number",
          "unit": "USD"
        },
        "market_median_price_usd_per_ton": {
          "title": "Market median unit value",
          "description": "Median historical value per metric ton among suppliers; not a current quote.",
          "type": "number",
          "unit": "USD per metric ton"
        },
        "market_min_price_usd_per_ton": {
          "title": "Market minimum unit value",
          "description": "Lowest historical value per metric ton among suppliers; not a current quote.",
          "type": "number",
          "unit": "USD per metric ton"
        },
        "market_max_price_usd_per_ton": {
          "title": "Market maximum unit value",
          "description": "Highest historical value per metric ton among suppliers; not a current quote.",
          "type": "number",
          "unit": "USD per metric ton"
        },
        "num_price_competitors": {
          "title": "Competing suppliers",
          "description": "Number of competing suppliers with available unit values.",
          "type": "integer",
          "minimum": 0,
          "maximum": 4294967295,
          "unit": "count"
        },
        "price_vs_median_pct": {
          "title": "Difference from the market median",
          "description": "Percentage difference between the unit value and the market median.",
          "type": [
            "number",
            "null"
          ],
          "unit": "percent"
        },
        "price_position": {
          "title": "Unit-value position",
          "description": "Historical unit-value position relative to available comparisons.",
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  },
  "fields": [
    {
      "name": "year",
      "label": "Year",
      "type": "integer",
      "nullable": false,
      "description": "Reported calendar year.",
      "category": "Observation"
    },
    {
      "name": "exporter_iso3",
      "label": "Exporting country code",
      "type": "string",
      "nullable": false,
      "description": "Three-letter code for the country exporting the goods; preserve as text.",
      "category": "Observation",
      "pattern": "^[A-Z]{3}$",
      "length": 3
    },
    {
      "name": "importer_iso3",
      "label": "Destination country code",
      "type": "string",
      "nullable": false,
      "description": "Three-letter code for the country receiving the goods; preserve as text.",
      "category": "Observation",
      "pattern": "^[A-Z]{3}$",
      "length": 3
    },
    {
      "name": "hs_code",
      "label": "HS6 product code",
      "type": "string",
      "nullable": false,
      "description": "Six-digit Harmonized System (HS6) code identifying the product category; preserve leading zeros.",
      "category": "Observation",
      "pattern": "^[0-9]{6}$",
      "length": 6
    },
    {
      "name": "unit_value_usd_per_ton",
      "label": "Historical unit value",
      "type": "number",
      "nullable": false,
      "description": "Historical value divided by quantity; not a current selling price.",
      "category": "Calculated indicators",
      "unit": "USD per metric ton"
    },
    {
      "name": "quantity_metric_tons",
      "label": "Quantity",
      "type": "number",
      "nullable": false,
      "description": "Quantity in metric tons.",
      "category": "Reported values",
      "unit": "metric ton"
    },
    {
      "name": "trade_value_usd",
      "label": "Reported export value",
      "type": "number",
      "nullable": false,
      "description": "Reported merchandise value in US dollars.",
      "category": "Reported values",
      "unit": "USD"
    },
    {
      "name": "market_median_price_usd_per_ton",
      "label": "Market median unit value",
      "type": "number",
      "nullable": false,
      "description": "Median historical value per metric ton among suppliers; not a current quote.",
      "category": "Calculated indicators",
      "unit": "USD per metric ton"
    },
    {
      "name": "market_min_price_usd_per_ton",
      "label": "Market minimum unit value",
      "type": "number",
      "nullable": false,
      "description": "Lowest historical value per metric ton among suppliers; not a current quote.",
      "category": "Calculated indicators",
      "unit": "USD per metric ton"
    },
    {
      "name": "market_max_price_usd_per_ton",
      "label": "Market maximum unit value",
      "type": "number",
      "nullable": false,
      "description": "Highest historical value per metric ton among suppliers; not a current quote.",
      "category": "Calculated indicators",
      "unit": "USD per metric ton"
    },
    {
      "name": "num_price_competitors",
      "label": "Competing suppliers",
      "type": "integer",
      "nullable": false,
      "description": "Number of competing suppliers with available unit values.",
      "category": "Calculated indicators",
      "unit": "count"
    },
    {
      "name": "price_vs_median_pct",
      "label": "Difference from the market median",
      "type": "number",
      "nullable": true,
      "description": "Percentage difference between the unit value and the market median.",
      "category": "Calculated indicators",
      "unit": "percent"
    },
    {
      "name": "price_position",
      "label": "Unit-value position",
      "type": "string",
      "nullable": true,
      "description": "Historical unit-value position relative to available comparisons.",
      "category": "Calculated indicators"
    }
  ],
  "nullHandling": {
    "json": "A null value means unavailable, not zero.",
    "csv": "Missing numeric values are empty in the CSV. Preserve country and product codes as text."
  }
}
