schemes:person:addressdetails
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
| schemes:person:addressdetails [2024/12/13 12:46] – [array notation] lars_gerulat | schemes:person:addressdetails [2026/09/08 14:34] (aktuell) – B2Base-Schemaentwurf: internationale Datenmodelle, Beispiele und Erläuterungen 0.0.0.0 | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== | + | ====== |
| - | ===== description | + | |
| - | Das Schema für **[[schemes:person|person]]:addressdetails** unterstützt: | + | <WRAP b2hero> |
| - | | + | **B2Base · 1.0.0-draft.1 · Projektentwurf** |
| - | * Geolocation: | + | |
| - | * Vollständige Adressdetails: | + | Postadressen, |
| - | ===== examples | + | |
| - | ==== json notation | + | [[schemes: |
| - | <code> | + | </ |
| + | |||
| + | ===== Direkt verwenden | ||
| + | |||
| + | [[b2schema> | ||
| + | |||
| + | **Austauschschema:** vollständige Strukturprüfung mit JSON Schema 2020-12. **Designer-Fassung:** gleiche Datenfelder mit reduzierten Strukturregeln zur Feldübernahme. [[:guidelines# | ||
| + | |||
| + | ===== Felder im Überblick ===== | ||
| + | |||
| + | ^ Feld ^ Typ ^ Pflicht im Modul ^ Bedeutung ^ | ||
| + | | '' | ||
| + | | '' | ||
| + | |||
| + | Pflichtangaben gelten | ||
| + | |||
| + | ===== International richtig einsetzen ===== | ||
| + | |||
| + | * Straße, Stadt, Postleitzahl und Hausnummer sind optional. country bezeichnet das Zielland; code und name sind getrennt. | ||
| + | * Die geordneten addressLines bestimmen die Druckdarstellung, | ||
| + | * Koordinaten ersetzen keine Zustellbarkeitsprüfung. Zeilenreihenfolge und nationale Postregeln prüft das jeweilige Länderprofil. | ||
| + | |||
| + | ===== Gültige Beispiele | ||
| + | |||
| + | Alle Beispiele sind synthetisch. Sie werden mit dem mitgelieferten Schema geprüft; daraus folgt keine fachliche Echtheit oder externe Erreichbarkeit. | ||
| + | |||
| + | ==== Beispiel 1 ==== | ||
| + | |||
| + | <file json example-1.json> | ||
| { | { | ||
| " | " | ||
| { | { | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | }, | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | }, | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | }, | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | }, | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | }, | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | }, | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | }, | ||
| " | " | ||
| - | "name": "Germany", | + | "code": "GB" |
| - | " | + | |
| - | " | + | |
| }, | }, | ||
| - | "geolocation": | + | "addressLines": |
| - | "latitude": 52.5200, | + | "Example House", |
| - | "longitude": | + | "London SW1A 1AA" |
| + | ], | ||
| + | " | ||
| + | " | ||
| } | } | ||
| - | }, | + | } |
| + | ] | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== Beispiel 2 ==== | ||
| + | |||
| + | <file json example-2.json> | ||
| + | { | ||
| + | " | ||
| { | { | ||
| - | " | + | " |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | }, | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | }, | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | }, | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | }, | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | }, | + | |
| " | " | ||
| - | "name": "Germany", | + | "code": "AE" |
| - | " | + | |
| - | " | + | |
| }, | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ], | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| } | } | ||
| ] | ] | ||
| } | } | ||
| - | </code> | + | </file> |
| - | ==== array notation ==== | + | |
| - | < | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | ===== Umstellung aus dem bisherigen Wiki ===== |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | $person[' | + | |
| - | </ | + | |
| - | ===== schema | + | Die bisherigen verschachtelten Komponenten einschließlich line_in_address bleiben erhalten. Die generelle Pflicht für city und type entfällt. Neu sind addressLines, |
| - | <code> | + | |
| + | [[schemes: | ||
| + | |||
| + | ===== Vollständiges Schema | ||
| + | |||
| + | Die Datei ist eigenständig: | ||
| + | |||
| + | <file json addressdetails.schema.json> | ||
| { | { | ||
| " | " | ||
| - | " | + | " |
| - | " | + | " |
| - | "description": "A schema for representing a person' | + | "$comment": "B2Base 1.0.0-draft.1. Projektentwurf, kein durch ISO oder andere Normungsgremien verabschiedeter Standard.", |
| " | " | ||
| + | " | ||
| " | " | ||
| " | " | ||
| " | " | ||
| - | " | + | " |
| " | " | ||
| - | " | + | |
| - | " | + | }, |
| - | " | + | " |
| + | }, | ||
| + | " | ||
| + | | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | | ||
| + | } | ||
| + | } | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | ], | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | | ||
| + | "type": { | ||
| + | "type": " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | "items": { | ||
| " | " | ||
| - | "description": | + | "minLength": |
| - | "example": "primary residence" | + | "description": "Eine Adresszeile." |
| }, | }, | ||
| - | "street": | + | "minItems": |
| - | "type": | + | }, |
| - | "description": "Detailed information about the street.", | + | |
| - | "properties": | + | "$ref": "#/ |
| - | "name": { | + | }, |
| - | " | + | "recipient": { |
| - | "description": | + | " |
| - | "example": "Main Street" | + | "minLength": |
| - | }, | + | "description": "Optionale Empfängerbezeichnung." |
| - | "line_in_address": { | + | }, |
| - | " | + | "street": { |
| - | " | + | " |
| - | "example": | + | " |
| - | }, | + | "properties": |
| - | | + | "name": { |
| - | " | + | " |
| - | "description": | + | "minLength": |
| - | "example": | + | "description": |
| - | } | + | |
| }, | }, | ||
| - | "required": | + | "line_in_address": |
| + | | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| }, | }, | ||
| - | "number": | + | "required": |
| - | "type": " | + | "name" |
| - | "description": | + | ], |
| - | "properties": { | + | "additionalProperties": |
| - | " | + | }, |
| - | | + | "number": { |
| - | " | + | " |
| - | "example": | + | " |
| - | }, | + | "properties": |
| - | | + | "value": { |
| - | " | + | " |
| - | "description": | + | "minLength": 1, |
| - | " | + | "description": "Hausnummer, auch alphanumerisch." |
| - | }, | + | |
| - | "position_in_address_line": | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | } | + | |
| }, | }, | ||
| - | "required": | + | "line_in_address": |
| + | | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| }, | }, | ||
| - | "unit": | + | "required": |
| - | "type": " | + | "value" |
| - | "description": | + | ], |
| - | "properties": { | + | "additionalProperties": |
| - | " | + | }, |
| - | | + | "unit": { |
| - | " | + | " |
| - | "example": | + | " |
| - | }, | + | "properties": |
| - | | + | "value": { |
| - | " | + | " |
| - | "description": | + | "minLength": 1, |
| - | " | + | " |
| - | }, | + | |
| - | | + | |
| - | " | + | |
| - | | + | |
| - | " | + | |
| - | } | + | |
| }, | }, | ||
| - | "required": | + | "line_in_address": |
| + | | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| }, | }, | ||
| - | "floor": | + | "required": |
| - | "type": " | + | "value" |
| - | "description": | + | ], |
| - | "properties": { | + | "additionalProperties": |
| - | " | + | }, |
| - | | + | "floor": { |
| - | " | + | " |
| - | "example": | + | " |
| - | }, | + | "properties": |
| - | | + | "value": { |
| - | " | + | " |
| - | "description": | + | "minLength": 1, |
| - | " | + | " |
| - | }, | + | |
| - | | + | |
| - | " | + | |
| - | | + | |
| - | " | + | |
| - | } | + | |
| }, | }, | ||
| - | "required": | + | "line_in_address": |
| + | | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| }, | }, | ||
| - | "postBox": | + | "required": |
| - | "type": " | + | "value" |
| - | "description": | + | ], |
| - | "properties": { | + | "additionalProperties": |
| - | " | + | }, |
| - | | + | "postBox": { |
| - | " | + | " |
| - | "example": | + | " |
| - | }, | + | "properties": |
| - | | + | "value": { |
| - | " | + | " |
| - | "description": | + | "minLength": |
| - | " | + | " |
| - | }, | + | |
| - | | + | |
| - | " | + | |
| - | | + | |
| - | " | + | |
| - | } | + | |
| }, | }, | ||
| - | "required": | + | "line_in_address": |
| + | | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| }, | }, | ||
| - | "blockOrPlotNumber": | + | "required": |
| - | "type": " | + | "value" |
| - | "description": | + | ], |
| - | "properties": { | + | "additionalProperties": |
| - | " | + | }, |
| - | | + | "blockOrPlotNumber": { |
| - | " | + | " |
| - | "example": | + | " |
| - | }, | + | "properties": |
| - | | + | "value": { |
| - | " | + | " |
| - | "description": | + | "minLength": |
| - | " | + | " |
| - | }, | + | |
| - | | + | |
| - | " | + | |
| - | | + | |
| - | " | + | |
| - | } | + | |
| }, | }, | ||
| - | "required": | + | "line_in_address": |
| + | | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| }, | }, | ||
| - | "city": | + | "required": |
| - | "type": " | + | "value" |
| - | "description": | + | ], |
| - | "properties": { | + | "additionalProperties": |
| - | " | + | }, |
| - | | + | "city": { |
| - | " | + | " |
| - | "example": | + | " |
| - | }, | + | "properties": |
| - | | + | "name": { |
| - | " | + | " |
| - | "description": | + | "minLength": |
| - | " | + | " |
| - | }, | + | |
| - | | + | |
| - | " | + | |
| - | | + | |
| - | " | + | |
| - | } | + | |
| }, | }, | ||
| - | "required": | + | "line_in_address": |
| + | | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| }, | }, | ||
| - | "state": | + | "required": |
| - | "type": " | + | "name" |
| - | "description": | + | ], |
| - | "properties": { | + | "additionalProperties": |
| - | " | + | }, |
| - | | + | "state": { |
| - | " | + | " |
| - | "example": | + | " |
| - | }, | + | "properties": |
| - | | + | "name": { |
| - | " | + | " |
| - | "description": | + | "minLength": |
| - | " | + | "description": "Region, Provinz oder Bundesstaat." |
| - | }, | + | |
| - | "position_in_address_line": | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | } | + | |
| }, | }, | ||
| - | "required": | + | "line_in_address": |
| + | | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| }, | }, | ||
| - | "postalCode": | + | "required": |
| - | "type": " | + | "name" |
| - | "description": | + | ], |
| - | "properties": { | + | "additionalProperties": |
| - | " | + | }, |
| - | | + | "postalCode": { |
| - | " | + | " |
| - | "example": | + | " |
| - | }, | + | "properties": |
| - | | + | "value": { |
| - | " | + | " |
| - | "description": | + | "minLength": |
| - | " | + | " |
| - | }, | + | |
| - | | + | |
| - | " | + | |
| - | | + | |
| - | " | + | |
| - | } | + | |
| }, | }, | ||
| - | "required": | + | "line_in_address": |
| + | | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| }, | }, | ||
| - | "wardNumber": | + | "required": |
| - | "type": " | + | "value" |
| - | "description": | + | ], |
| - | "properties": { | + | "additionalProperties": |
| - | " | + | }, |
| - | | + | "wardNumber": { |
| - | " | + | " |
| - | "example": | + | " |
| - | }, | + | "properties": |
| - | | + | "value": { |
| - | " | + | " |
| - | "description": | + | "minLength": |
| - | " | + | " |
| - | }, | + | |
| - | | + | |
| - | " | + | |
| - | | + | |
| - | " | + | |
| - | } | + | |
| }, | }, | ||
| - | "required": | + | "line_in_address": |
| + | | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| }, | }, | ||
| - | "country": | + | "required": |
| - | "type": " | + | "value" |
| - | "description": | + | ], |
| - | "properties": { | + | "additionalProperties": |
| - | " | + | }, |
| - | | + | "country": { |
| - | " | + | " |
| - | "example": "Germany" | + | " |
| - | }, | + | "properties": |
| - | "line_in_address": { | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | "name": { |
| - | | + | " |
| - | "position_in_address_line": { | + | " |
| - | " | + | |
| - | " | + | }, |
| - | "example": 1 | + | "line_in_address": { |
| - | } | + | " |
| + | " | ||
| + | "minimum": 1 | ||
| }, | }, | ||
| - | "required": | + | "position_in_address_line": |
| + | | ||
| + | " | ||
| + | " | ||
| + | } | ||
| }, | }, | ||
| - | "militaryAddress": | + | "additionalProperties": false, |
| - | " | + | "anyOf": |
| - | " | + | { |
| - | " | + | "required": |
| - | }, | + | "code" |
| - | "geolocation": | + | |
| - | | + | |
| - | " | + | |
| - | " | + | |
| - | "latitude": | + | |
| - | "type": " | + | |
| - | " | + | |
| - | " | + | |
| - | }, | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | | + | |
| }, | }, | ||
| - | " | + | |
| + | | ||
| + | | ||
| + | ] | ||
| + | } | ||
| + | ] | ||
| + | }, | ||
| + | | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| } | } | ||
| + | } | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | ], | ||
| + | " | ||
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | ] | ||
| }, | }, | ||
| - | " | + | |
| - | } | + | |
| + | | ||
| + | ] | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | ] | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | | ||
| + | ] | ||
| + | }, | ||
| + | { | ||
| + | | ||
| + | " | ||
| + | | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | ] | ||
| + | } | ||
| + | | ||
| + | | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ], | ||
| + | " | ||
| } | } | ||
| }, | }, | ||
| - | "required": [" | + | "examples": [ |
| + | { | ||
| + | | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ], | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | } | ||
| + | ] | ||
| + | }, | ||
| + | { | ||
| + | " | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | ], | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | } | ||
| + | ] | ||
| + | } | ||
| + | | ||
| } | } | ||
| - | </code> | + | </file> |
| + | |||
| + | ===== Quellen und Abgrenzung ===== | ||
| + | |||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | Quellen geprüft am 8. September 2026. Die B2Base-Felder und ihre Kombination sind ein eigener Entwurf. Code-Register, | ||
| + | |||
| + | [[schemes: | ||
schemes/person/addressdetails.1734090397.txt.gz · Zuletzt geändert: (Externe Bearbeitung)
