Anhang¶
Die JSON-Schemas, welche die Struktur der JSON-Dateien für die Metadaten definieren, sind hier abgelegt:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"enums": {
"public_trial": {
"type": "string",
"enum": [
"unchecked",
"public",
"private",
"limited-public"
]
},
"reference_number_formatters": {
"type": "string",
"enum": [
"dotted",
"grouped_by_three"
]
}
},
"definitions": {
"custom_vocabulary": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"identifier": {
"type": "string"
},
"label_en": {
"type": "string"
},
"label_de": {
"type": "string"
},
"label_fr": {
"type": "string"
}
},
"required": [
"identifier",
"label_en"
],
"anyOf": [
{
"required": [
"label_de"
]
},
{
"required": [
"label_fr"
]
}
]
}
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"public_trial_default_value": {
"$ref": "#/enums/public_trial"
},
"maximum_repository_depth": {
"type": "integer"
},
"maximum_dossier_depth": {
"type": "integer"
},
"retention_periods": {
"type": "array",
"items": {
"type": "integer"
}
},
"custody_periods": {
"type": "array",
"items": {
"type": "integer"
}
},
"dossier_type_prefixes": {
"$ref": "#/definitions/custom_vocabulary"
},
"dossier_container_types": {
"$ref": "#/definitions/custom_vocabulary"
},
"preserved_as_paper_default": {
"type": "boolean"
},
"reference_number_formatter": {
"$ref": "#/enums/reference_number_formatters"
}
},
"required": [
"public_trial_default_value",
"maximum_repository_depth",
"maximum_dossier_depth",
"retention_periods",
"custody_periods",
"dossier_type_prefixes",
"dossier_container_types",
"preserved_as_paper_default",
"reference_number_formatter"
]
}
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array",
"items": {
"$ref": "#/definitions/document"
},
"definitions": {
"document": {
"type": "object",
"title": "Dokument",
"additionalProperties": false,
"properties": {
"classification": {
"type": [
"null",
"string"
],
"title": "Klassifikation",
"description": "Grad, in dem die Unterlagen vor unberechtigter Einsicht geschützt werden müssen",
"_zope_schema_type": "Choice",
"default": "unprotected",
"enum": [
null,
"unprotected",
"confidential",
"classified"
]
},
"parent_guid": {
"type": "string"
},
"keywords": {
"type": [
"null",
"array"
],
"title": "Schlagworte",
"description": "",
"_zope_schema_type": "Tuple"
},
"guid": {
"type": "string"
},
"document_date": {
"type": [
"null",
"string"
],
"title": "Dokumentdatum",
"format": "date",
"description": "Datum des Dokuments",
"_zope_schema_type": "Date",
"default": "<Aktuelles Datum>"
},
"receipt_date": {
"type": [
"null",
"string"
],
"title": "Eingangsdatum",
"format": "date",
"description": "Datum, an dem das Dokument über den Korrespondenzweg angekommen ist",
"_zope_schema_type": "Date"
},
"privacy_layer": {
"type": [
"null",
"string"
],
"title": "Datenschutzstufe",
"description": "Markierung, die angibt, ob die Unterlagen besonders schützenswerte Personendaten oder Persönlichkeitsprofile gemäss Datenschutzrecht enthalten",
"_zope_schema_type": "Choice",
"default": "privacy_layer_no",
"enum": [
null,
"privacy_layer_no",
"privacy_layer_yes"
]
},
"document_author": {
"type": [
"null",
"string"
],
"title": "Autor",
"description": "Nachname Vorname oder ein Benutzerkürzel (wird automatisch nach Nachname Vorname aufgelöst).",
"_zope_schema_type": "TextLine"
},
"relatedItems": {
"type": [
"null",
"array"
],
"title": "Verwandte Dokumente",
"description": "",
"_zope_schema_type": "RelationList",
"default": []
},
"public_trial_statement": {
"type": [
"null",
"string"
],
"title": "Bearbeitungsinformation",
"description": "Datum Gesuch, Gesuchsteller, Datum Entscheid, Verweis auf GEVER-Gesuchdossier",
"_zope_schema_type": "Text",
"default": ""
},
"public_trial": {
"type": [
"null",
"string"
],
"title": "Öffentlichkeitsstatus",
"description": "Angabe, ob die Unterlagen gemäss Öffentlichkeitsgesetz zugänglich sind oder nicht",
"_zope_schema_type": "Choice",
"default": "unchecked",
"enum": [
null,
"unchecked",
"public",
"limited-public",
"private"
]
},
"review_state": {
"enum": [
"document-state-draft"
],
"type": "string"
},
"foreign_reference": {
"type": [
"null",
"string"
],
"title": "Fremdzeichen",
"description": "Referenz auf das entsprechende Dossier des Absenders",
"_zope_schema_type": "TextLine"
},
"description": {
"type": [
"null",
"string"
],
"title": "Beschreibung",
"description": "",
"_zope_schema_type": "Text"
},
"document_type": {
"type": [
"null",
"string"
],
"title": "Dokumenttyp",
"description": "",
"_zope_schema_type": "Choice",
"enum": [
null,
"question",
"request",
"report",
"offer",
"protocol",
"regulations",
"contract",
"directive"
]
},
"preserved_as_paper": {
"type": [
"null",
"boolean"
],
"title": "In Papierform aufbewahrt",
"description": "In Papierform aufbewahrt",
"_zope_schema_type": "Bool",
"default": true
},
"filepath": {
"type": "string"
},
"title": {
"type": "string",
"title": "Titel",
"description": "",
"_zope_schema_type": "TextLine"
},
"sequence_number": {
"type": [
"null",
"integer"
],
"description": "Fortlaufend gezählte Nummer eines Dokumentes.",
"title": "Laufnummer"
},
"creators": {
"type": [
"null",
"array"
],
"title": "Autoren",
"description": "",
"_zope_schema_type": "Tuple"
},
"delivery_date": {
"type": [
"null",
"string"
],
"title": "Ausgangsdatum",
"format": "date",
"description": "Datum, an dem das Dokument über den Korrespondenzweg versandt worden ist",
"_zope_schema_type": "Date"
}
},
"field_order": [
"title",
"file",
"creators",
"classification",
"privacy_layer",
"public_trial",
"public_trial_statement",
"relatedItems",
"description",
"keywords",
"foreign_reference",
"document_date",
"receipt_date",
"delivery_date",
"document_type",
"document_author",
"preserved_as_paper",
"archival_file",
"archival_file_state"
],
"required": [
"review_state",
"guid",
"parent_guid",
"title",
"filepath"
]
}
}
}
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array",
"items": {
"$ref": "#/definitions/dossier"
},
"definitions": {
"dossier": {
"type": "object",
"title": "Geschäftsdossier",
"additionalProperties": false,
"properties": {
"date_of_submission": {
"type": [
"null",
"string"
],
"title": "Anbietezeitpunkt",
"format": "date",
"description": "",
"_zope_schema_type": "Date"
},
"classification": {
"type": [
"null",
"string"
],
"title": "Klassifikation",
"description": "Grad, in dem die Unterlagen vor unberechtigter Einsicht geschützt werden müssen",
"_zope_schema_type": "Choice",
"default": "unprotected",
"enum": [
null,
"unprotected",
"confidential",
"classified"
]
},
"parent_guid": {
"type": "string"
},
"relatedDossier": {
"type": [
"null",
"array"
],
"title": "Verwandte Dossiers",
"description": "",
"_zope_schema_type": "RelationList",
"default": []
},
"retention_period": {
"type": [
"null",
"integer"
],
"title": "Aufbewahrungsdauer (Jahre)",
"description": "Zeitraum zwischen dem jüngsten Dokumentdatum eines in einem Dossier enthaltenen Dokuments und dem Zeitpunkt, an dem dieses für die Geschäftstätigkeit der Verwaltungseinheit nicht mehr benötigt wird",
"_zope_schema_type": "Choice",
"default": 5,
"enum": [
null,
5,
10,
15,
20,
25
]
},
"container_type": {
"type": [
"null",
"string"
],
"title": "Behältnis-Art",
"description": "Art des Behälters, in dem ein Dossier in Papierform abgelegt ist",
"_zope_schema_type": "Choice",
"enum": [
null,
"dossier",
"folder",
"box"
]
},
"filing_prefix": {
"type": [
"null",
"string"
],
"title": "Ablage Präfix",
"description": "",
"_zope_schema_type": "Choice",
"enum": [
null,
"department",
"directorate",
"administration",
"personal",
"government"
]
},
"keywords": {
"type": [
"null",
"array"
],
"title": "Schlagworte",
"description": "Schlagwörter zur Umschreibung eines Dossiers. Nicht zu verwechseln mit der Ordnungsposition",
"_zope_schema_type": "Tuple"
},
"date_of_cassation": {
"type": [
"null",
"string"
],
"title": "Kassationsdatum",
"format": "date",
"description": "",
"_zope_schema_type": "Date"
},
"guid": {
"type": "string"
},
"retention_period_annotation": {
"type": [
"null",
"string"
],
"title": "Kommentar zur Aufbewahrungsdauer",
"description": "",
"_zope_schema_type": "Text"
},
"end": {
"type": [
"null",
"string"
],
"title": "Ende",
"format": "date",
"description": "",
"_zope_schema_type": "Date"
},
"title": {
"type": "string",
"title": "Titel",
"description": "",
"_zope_schema_type": "TextLine"
},
"custody_period": {
"type": [
"null",
"integer"
],
"title": "Archivische Schutzfrist (Jahre)",
"description": "Dauer, während der nach der Archivierung die Dokumente vor öffentlicher Einsichtnahme geschützt sind",
"_zope_schema_type": "Choice",
"default": 30,
"enum": [
null,
0,
30,
100,
150
]
},
"archival_value": {
"type": [
"null",
"string"
],
"title": "Archivwürdigkeit",
"description": "Archivwürdigkeit",
"_zope_schema_type": "Choice",
"default": "unchecked",
"enum": [
null,
"unchecked",
"prompt",
"archival worthy",
"not archival worthy",
"archival worthy with sampling"
]
},
"responsible": {
"type": "string",
"title": "Federführend",
"description": "",
"_zope_schema_type": "Choice",
"_vocabulary": "<Gültige User-ID>"
},
"comments": {
"type": [
"null",
"string"
],
"title": "Kommentar",
"description": "",
"_zope_schema_type": "Text"
},
"start": {
"type": [
"null",
"string"
],
"title": "Beginn",
"format": "date",
"description": "",
"_zope_schema_type": "Date",
"default": "<Aktuelles Datum>"
},
"number_of_containers": {
"type": [
"null",
"integer"
],
"title": "Anzahl Behältnisse",
"description": "Anzahl Behälter, die ein (grosses) Dossier in Papierform enthalten",
"_zope_schema_type": "Int"
},
"public_trial": {
"type": [
"null",
"string"
],
"title": "Öffentlichkeitsstatus",
"description": "Angabe, ob die Unterlagen gemäss Öffentlichkeitsgesetz zugänglich sind oder nicht",
"_zope_schema_type": "Choice",
"default": "unchecked",
"enum": [
null,
"unchecked",
"public",
"limited-public",
"private"
]
},
"container_location": {
"type": [
"null",
"string"
],
"title": "Behältnis-Standort",
"description": "Standortangabe des Behälters, in dem ein Dossier in Papierform abgelegt ist",
"_zope_schema_type": "TextLine"
},
"review_state": {
"enum": [
"dossier-state-active",
"dossier-state-resolved"
],
"type": "string"
},
"description": {
"type": [
"null",
"string"
],
"title": "Beschreibung",
"description": "",
"_zope_schema_type": "Text"
},
"archival_value_annotation": {
"type": [
"null",
"string"
],
"title": "Kommentar zur Archivwürdigkeit",
"description": "",
"_zope_schema_type": "Text"
},
"public_trial_statement": {
"type": [
"null",
"string"
],
"title": "Bearbeitungsinformation",
"description": "Datum Gesuch, Gesuchsteller, Datum Entscheid, Verweis auf GEVER-Gesuchdossier",
"_zope_schema_type": "Text",
"default": ""
},
"reference_number": {
"type": [
"null",
"string"
],
"title": "Aktenzeichen",
"description": "",
"_zope_schema_type": "TextLine"
},
"privacy_layer": {
"type": [
"null",
"string"
],
"title": "Datenschutzstufe",
"description": "Markierung, die angibt, ob die Unterlagen besonders schützenswerte Personendaten oder Persönlichkeitsprofile gemäss Datenschutzrecht enthalten",
"_zope_schema_type": "Choice",
"default": "privacy_layer_no",
"enum": [
null,
"privacy_layer_no",
"privacy_layer_yes"
]
},
"former_reference_number": {
"type": [
"null",
"string"
],
"title": "Früheres Aktenzeichen",
"description": "",
"_zope_schema_type": "TextLine"
},
"_permissions": {
"$ref": "#/definitions/permission"
},
"sequence_number": {
"type": [
"null",
"integer"
],
"description": "Fortlaufend gezählte Nummer eines Dossiers.",
"title": "Laufnummer"
}
},
"required": [
"title",
"responsible",
"review_state",
"guid",
"parent_guid"
],
"field_order": [
"title",
"description",
"keywords",
"start",
"end",
"comments",
"responsible",
"filing_prefix",
"container_type",
"number_of_containers",
"container_location",
"relatedDossier",
"former_reference_number",
"reference_number",
"classification",
"privacy_layer",
"public_trial",
"public_trial_statement",
"retention_period",
"retention_period_annotation",
"archival_value",
"archival_value_annotation",
"custody_period",
"date_of_cassation",
"date_of_submission"
]
},
"permission": {
"additionalProperties": false,
"type": "object",
"properties": {
"reactivate": {
"items": {
"type": "string"
},
"type": "array"
},
"read": {
"items": {
"type": "string"
},
"type": "array"
},
"edit": {
"items": {
"type": "string"
},
"type": "array"
},
"add": {
"items": {
"type": "string"
},
"type": "array"
},
"close": {
"items": {
"type": "string"
},
"type": "array"
},
"block_inheritance": {
"type": "boolean"
}
}
}
}
}
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array",
"items": {
"$ref": "#/definitions/repofolder"
},
"definitions": {
"repofolder": {
"type": "object",
"title": "Ordnungsposition",
"additionalProperties": false,
"properties": {
"title_de": {
"type": [
"null",
"string"
],
"title": "Titel (deutsch)",
"description": "",
"_zope_schema_type": "TextLine"
},
"date_of_submission": {
"type": [
"null",
"string"
],
"title": "Anbietezeitpunkt",
"format": "date",
"description": "",
"_zope_schema_type": "Date"
},
"classification": {
"type": [
"null",
"string"
],
"title": "Klassifikation",
"description": "Grad, in dem die Unterlagen vor unberechtigter Einsicht geschützt werden müssen",
"_zope_schema_type": "Choice",
"default": "unprotected",
"enum": [
null,
"unprotected",
"confidential",
"classified"
]
},
"parent_guid": {
"type": "string"
},
"retention_period": {
"type": [
"null",
"integer"
],
"title": "Aufbewahrungsdauer (Jahre)",
"description": "Zeitraum zwischen dem jüngsten Dokumentdatum eines in einem Dossier enthaltenen Dokuments und dem Zeitpunkt, an dem dieses für die Geschäftstätigkeit der Verwaltungseinheit nicht mehr benötigt wird",
"_zope_schema_type": "Choice",
"default": 5,
"enum": [
null,
5,
10,
15,
20,
25
]
},
"date_of_cassation": {
"type": [
"null",
"string"
],
"title": "Kassationsdatum",
"format": "date",
"description": "",
"_zope_schema_type": "Date"
},
"guid": {
"type": "string"
},
"title_fr": {
"type": [
"null",
"string"
],
"title": "Titel (französisch)",
"description": "",
"_zope_schema_type": "TextLine"
},
"retention_period_annotation": {
"type": [
"null",
"string"
],
"title": "Kommentar zur Aufbewahrungsdauer",
"description": "",
"_zope_schema_type": "Text"
},
"valid_from": {
"type": [
"null",
"string"
],
"title": "Gültig ab",
"format": "date",
"description": "",
"_zope_schema_type": "Date"
},
"privacy_layer": {
"type": [
"null",
"string"
],
"title": "Datenschutzstufe",
"description": "Markierung, die angibt, ob die Unterlagen besonders schützenswerte Personendaten oder Persönlichkeitsprofile gemäss Datenschutzrecht enthalten",
"_zope_schema_type": "Choice",
"default": "privacy_layer_no",
"enum": [
null,
"privacy_layer_no",
"privacy_layer_yes"
]
},
"custody_period": {
"type": [
"null",
"integer"
],
"title": "Archivische Schutzfrist (Jahre)",
"description": "Dauer, während der nach der Archivierung die Dokumente vor öffentlicher Einsichtnahme geschützt sind",
"_zope_schema_type": "Choice",
"default": 30,
"enum": [
null,
0,
30,
100,
150
]
},
"archival_value": {
"type": [
"null",
"string"
],
"title": "Archivwürdigkeit",
"description": "Archivwürdigkeit",
"_zope_schema_type": "Choice",
"default": "unchecked",
"enum": [
null,
"unchecked",
"prompt",
"archival worthy",
"not archival worthy",
"archival worthy with sampling"
]
},
"location": {
"type": [
"null",
"string"
],
"title": "Standort",
"description": "",
"_zope_schema_type": "TextLine"
},
"public_trial": {
"type": [
"null",
"string"
],
"title": "Öffentlichkeitsstatus",
"description": "Angabe, ob die Unterlagen gemäss Öffentlichkeitsgesetz zugänglich sind oder nicht",
"_zope_schema_type": "Choice",
"default": "unchecked",
"enum": [
null,
"unchecked",
"public",
"limited-public",
"private"
]
},
"review_state": {
"enum": [
"repositoryfolder-state-active"
],
"type": "string"
},
"_permissions": {
"$ref": "#/definitions/permission"
},
"valid_until": {
"type": [
"null",
"string"
],
"title": "Gültig bis",
"format": "date",
"description": "",
"_zope_schema_type": "Date"
},
"description": {
"type": [
"null",
"string"
],
"title": "Beschreibung",
"description": "Eine kurze Beschreibung des Inhalts.",
"_zope_schema_type": "Text"
},
"referenced_activity": {
"type": [
"null",
"string"
],
"title": "Leistung",
"description": "",
"_zope_schema_type": "TextLine"
},
"archival_value_annotation": {
"type": [
"null",
"string"
],
"title": "Kommentar zur Archivwürdigkeit",
"description": "",
"_zope_schema_type": "Text"
},
"public_trial_statement": {
"type": [
"null",
"string"
],
"title": "Bearbeitungsinformation",
"description": "Datum Gesuch, Gesuchsteller, Datum Entscheid, Verweis auf GEVER-Gesuchdossier",
"_zope_schema_type": "Text",
"default": ""
},
"addable_dossier_types": {
"type": [
"null",
"array"
],
"title": "Erlaubte Spezialdossiers",
"description": "Wählen Sie die Spezialdossiers aus, die in dieser Ordnungsposition erlaubt sind.",
"_zope_schema_type": "List"
},
"former_reference": {
"type": [
"null",
"string"
],
"title": "Früheres Zeichen",
"description": "",
"_zope_schema_type": "TextLine"
},
"reference_number_prefix": {
"type": [
"null",
"string"
],
"title": "Präfix des Aktenzeichens",
"description": "",
"_zope_schema_type": "TextLine",
"default": "<Höchste auf dieser Ebene vergebene Nummer + 1>"
},
"creators": {
"type": [
"null",
"array"
],
"title": "Autoren",
"description": "",
"_zope_schema_type": "Tuple"
}
},
"anyOf": [
{
"required": [
"title_de"
]
},
{
"required": [
"title_fr"
]
}
],
"field_order": [
"description",
"valid_from",
"valid_until",
"location",
"referenced_activity",
"former_reference",
"addable_dossier_types",
"classification",
"privacy_layer",
"public_trial",
"public_trial_statement",
"title_de",
"title_fr",
"creators",
"retention_period",
"retention_period_annotation",
"archival_value",
"archival_value_annotation",
"custody_period",
"date_of_cassation",
"date_of_submission",
"reference_number_prefix"
],
"required": [
"review_state",
"guid",
"parent_guid"
]
},
"permission": {
"additionalProperties": false,
"type": "object",
"properties": {
"reactivate": {
"items": {
"type": "string"
},
"type": "array"
},
"read": {
"items": {
"type": "string"
},
"type": "array"
},
"edit": {
"items": {
"type": "string"
},
"type": "array"
},
"add": {
"items": {
"type": "string"
},
"type": "array"
},
"close": {
"items": {
"type": "string"
},
"type": "array"
},
"block_inheritance": {
"type": "boolean"
}
}
}
}
}
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array",
"items": {
"$ref": "#/definitions/reporoot"
},
"definitions": {
"reporoot": {
"type": "object",
"title": "Ordnungssystem",
"additionalProperties": false,
"properties": {
"valid_until": {
"type": [
"null",
"string"
],
"title": "Gültig bis",
"format": "date",
"description": "",
"_zope_schema_type": "Date"
},
"title_de": {
"type": [
"null",
"string"
],
"title": "Titel (deutsch)",
"description": "",
"_zope_schema_type": "TextLine"
},
"valid_from": {
"type": [
"null",
"string"
],
"title": "Gültig ab",
"format": "date",
"description": "",
"_zope_schema_type": "Date"
},
"parent_guid": {
"type": [
"null",
"string"
]
},
"version": {
"type": [
"null",
"string"
],
"title": "Version",
"description": "",
"_zope_schema_type": "TextLine"
},
"_permissions": {
"$ref": "#/definitions/permission"
},
"review_state": {
"enum": [
"repositoryroot-state-active"
],
"type": "string"
},
"guid": {
"type": "string"
},
"title_fr": {
"type": [
"null",
"string"
],
"title": "Titel (französisch)",
"description": "",
"_zope_schema_type": "TextLine"
}
},
"anyOf": [
{
"required": [
"title_de"
]
},
{
"required": [
"title_fr"
]
}
],
"field_order": [
"valid_from",
"valid_until",
"version",
"title_de",
"title_fr"
],
"required": [
"review_state",
"guid"
]
},
"permission": {
"additionalProperties": false,
"type": "object",
"properties": {
"reactivate": {
"items": {
"type": "string"
},
"type": "array"
},
"read": {
"items": {
"type": "string"
},
"type": "array"
},
"edit": {
"items": {
"type": "string"
},
"type": "array"
},
"add": {
"items": {
"type": "string"
},
"type": "array"
},
"close": {
"items": {
"type": "string"
},
"type": "array"
},
"block_inheritance": {
"type": "boolean"
}
}
}
}
}