Jurisdiction

EntityDraftv1.0.0-rc.2

A jurisdiction: an area under one legal authority, such as a country, a province or a municipality. It decides which frameworks apply to the features in it.

https://opendevelopmentstandards.org/schema/1.0.0-rc.2/core/Jurisdiction.json

Fields

Every entity also has the fields of the Entity base. The first row lists them.

From the Entity baseidnamedescriptionidentifierslinkscreatedAtupdatedAt
  • idRequired
    textnot empty

    The record's id: unique within the document. Fields that point at the record hold this id.

  • name
    text

    The name people use for the record.

  • description
    text

    What the record is, in words.

  • identifiers

    Ids the record has in other systems.

  • links

    Open-ended links to other records.

  • createdAt
    date-time (RFC 3339)

    When the record was created, in its producer's system.

  • updatedAt
    date-time (RFC 3339)

    When the record last changed, in its producer's system.

  • type
    One ofthe codes below

    The level of government.

    country
    A nation.
    province
    A province or territory.
    state
    A state.
    municipality
    A city, a county or a district.
    other
    Any other area under one authority.
  • parent

    The jurisdiction this one lies in.

  • geometry

    The jurisdiction's area, when known.

Links

Examples

An id that another example defines opens that record.

Full example

{
  "id": "jurisdiction-ab",
  "name": "Alberta",
  "type": "province",
  "parent": "jurisdiction-ca",
  "identifiers": [
    {
      "scheme": "iso_3166_2",
      "value": "CA-AB"
    }
  ]
}
Show 1 more example

Minimal example: the required fields only

{
  "id": "jurisdiction-ab"
}

Changes and file

Changes

  1. 0.1.0 First version.

Schema file

Show the JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://opendevelopmentstandards.org/schema/1.0.0-rc.2/core/Jurisdiction.json",
  "title": "Jurisdiction",
  "description": "A jurisdiction: an area under one legal authority, such as a country, a province or a municipality. It decides which frameworks apply to the features in it.",
  "$ref": "Entity.json",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "country",
        "province",
        "state",
        "municipality",
        "other"
      ],
      "description": "The level of government.",
      "x-ods-options": [
        {
          "value": "country",
          "title": "Country",
          "description": "A nation."
        },
        {
          "value": "province",
          "title": "Province",
          "description": "A province or territory."
        },
        {
          "value": "state",
          "title": "State",
          "description": "A state."
        },
        {
          "value": "municipality",
          "title": "Municipality",
          "description": "A city, a county or a district."
        },
        {
          "value": "other",
          "title": "Other",
          "description": "Any other area under one authority."
        }
      ]
    },
    "parent": {
      "type": "string",
      "minLength": 1,
      "x-ods-ref": "Jurisdiction",
      "description": "The jurisdiction this one lies in."
    },
    "geometry": {
      "$ref": "Geometry.json",
      "description": "The jurisdiction's area, when known."
    }
  },
  "patternProperties": {
    "^x-": {}
  },
  "unevaluatedProperties": false,
  "examples": [
    {
      "id": "jurisdiction-ab"
    },
    {
      "id": "jurisdiction-ab",
      "name": "Alberta",
      "type": "province",
      "parent": "jurisdiction-ca",
      "identifiers": [
        {
          "scheme": "iso_3166_2",
          "value": "CA-AB"
        }
      ]
    }
  ],
  "x-ods-status": "draft",
  "x-ods-kind": "entity",
  "x-ods-module": "core",
  "x-ods-changes": {
    "0.1.0": "First version."
  }
}