B2Base

Bürokratie vereinfachen durch Standards

Benutzer-Werkzeuge

Webseiten-Werkzeuge


schemes:person:nameandbirthdetails

Dies ist eine alte Version des Dokuments!


nameandbirthdetails

description

Das Schema person:nameandbirthdetails definiert:

Name:

  • titles: Optionale Liste von Titeln (z. B. „Dr.“, „Prof.“, „Sir“).
  • givenNames: Liste von Vornamen (mindestens ein Name erforderlich).
  • familyNames: Liste von Nachnamen oder Familiennamen (mindestens ein Name erforderlich).
  • suffixes: Optionale Namenszusätze (z. B. „Jr.“, „III“).
  • preferredName: Der bevorzugte vollständige Name der Person.
  • birthDate: Geburtsdatum im ISO-8601-Format (YYYY-MM-DD).

birthPlace:

  • city: Stadt oder Ort des Geburtsortes.
  • state: Optional, Bundesland oder Region.
  • country: Länderkürzel nach ISO 3166-1 Alpha-2.

examples

json notation

{
  "name": {
    "titles": [
      {"value": "Dr.", "position": 0}
    ],
    "givenNames": [
      {"value": "John", "position": 1},
      {"value": "Michael", "position": 2}
    ],
    "familyNames": [
      {"value": "Doe", "position": 4}
    ],
    "additions": [
      {"value": "von", "position": 3},
      {"value": "Jr.", "position": 5}
    ],
    "preferredName": "Dr. John Michael von Doe Jr."
  },
  "birthDate": "1980-07-25",
  "birthPlace": {
    "city": "Munich",
    "stateOrRegion": "Bavaria",
    "province": "Upper Bavaria",
    "country": "DE"
  }
}
{
  "name": {
    "titles": [],
    "givenNames": [
      {"value": "Ali", "position": 0}
    ],
    "additions": [
      {"value": "bin", "position": 1},
      {"value": "Abdullah", "position": 2}
    ],
    "familyNames": [
      {"value": "Al-Saudi", "position": 3}
    ],
    "preferredName": "Ali Al-Saudi",
    "originalScript": "علي بن عبد الله السعودي",
    "transliteratedName": "Ali bin Abdullah Al-Saudi"
  },
  "birthDate": "1985-03-15",
  "birthPlace": {
    "city": "Riyadh",
    "country": "SA"
  }
}

array notation

$person['nameandbirthdetails']['name']['titles'][0] = "Dr.";
$person['nameandbirthdetails']['name']['titles'][1] = "Prof.";

$person['nameandbirthdetails']['name']['givenNames'][0] = "Max";
$person['nameandbirthdetails']['name']['givenNames'][1] = "Karl";

$person['nameandbirthdetails']['name']['familyNames'][0] = "Mustermann";
$person['nameandbirthdetails']['name']['familyNames'][1] = "von Stottern";

$person['nameandbirthdetails']['name']['birthNames'][0] = "Tester";
$person['nameandbirthdetails']['name']['birthNames'][1] = "von Helsinki";

$person['nameandbirthdetails']['name']['suffixes'][0] = "Jr.";

$person['nameandbirthdetails']['name']['preferredName'] = "Dr. Max Mustermann";

$person['nameandbirthdetails']['birthDate'] = "1990-01-01";

$person['nameandbirthdetails']['birthPlace']['city'] = "Berlin";
$person['nameandbirthdetails']['birthPlace']['state'] = "Berlin";
$person['nameandbirthdetails']['birthPlace']['country'] = "DE";

schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://b2base.eu/doku.php?id=schemes:person:nameandbirthdetails",
  "title": "b2base:schemes:person:nameandbirthdetails",
  "description": "A globally valid schema for capturing name, birth date, and birth place.",
  "type": "object",
  "properties": {
    "name": {
      "type": "object",
      "description": "Information about the person's name.",
      "properties": {
        "titles": {
          "type": "array",
          "description": "List of titles with position in the name.",
          "items": {
            "type": "object",
            "properties": {
              "value": {
                "type": "string",
                "description": "The title (e.g., Dr., Prof.)."
              },
              "position": {
                "type": "integer",
                "description": "The position of the title in the name (0-based)."
              }
            },
            "required": ["value", "position"]
          }
        },
        "givenNames": {
          "type": "array",
          "description": "List of given names with position in the name.",
          "items": {
            "type": "object",
            "properties": {
              "value": {
                "type": "string",
                "description": "The given name."
              },
              "position": {
                "type": "integer",
                "description": "The position of the given name in the name (0-based)."
              }
            },
            "required": ["value", "position"]
          }
        },
        "familyNames": {
          "type": "array",
          "description": "List of family names with position in the name.",
          "items": {
            "type": "object",
            "properties": {
              "value": {
                "type": "string",
                "description": "The family name."
              },
              "position": {
                "type": "integer",
                "description": "The position of the family name in the name (0-based)."
              }
            },
            "required": ["value", "position"]
          }
        },
        "additions": {
          "type": "array",
          "description": "List of any additions (e.g., Jr., von, al-) with position in the name.",
          "items": {
            "type": "object",
            "properties": {
              "value": {
                "type": "string",
                "description": "The addition."
              },
              "position": {
                "type": "integer",
                "description": "The position of the addition in the name (0-based)."
              }
            },
            "required": ["value", "position"]
          }
        },
        "preferredName": {
          "type": "string",
          "description": "The person's preferred full name."
        },
        "originalScript": {
          "type": "string",
          "description": "The full name in the original script (e.g., Japanese, Chinese, Arabic).",
          "example": "张伟"
        },
        "transliteratedName": {
          "type": "string",
          "description": "The full name in transliterated form (e.g., Latin alphabet).",
          "example": "Zhang Wei"
        }
      },
      "required": ["preferredName"]
    },
    "birthDate": {
      "type": "string",
      "format": "date",
      "description": "The person's birth date in the format YYYY-MM-DD."
    },
    "birthPlace": {
      "type": "object",
      "description": "The person's birth place.",
      "properties": {
        "city": {
          "type": "string",
          "description": "The name of the city or town."
        },
        "district": {
          "type": "string",
          "description": "Optional, the district or neighborhood within the city.",
        },
        "stateOrRegion": {
          "type": "string",
          "description": "Optional, the state or region."
        },
        "province": {
          "type": "string",
          "description": "Optional, an additional administrative level like province or district."
        },
        "country": {
          "type": "string",
          "description": "Country code according to ISO 3166-1 Alpha-2."
        }
      },
      "required": ["city", "country"]
    }
  },
  "required": ["name", "birthDate", "birthPlace"]
}
schemes/person/nameandbirthdetails.1734088358.txt.gz · Zuletzt geändert: (Externe Bearbeitung)

Falls nicht anders bezeichnet, ist der Inhalt dieses Wikis unter der folgenden Lizenz veröffentlicht: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki