Skip to content

Commit

Permalink
add documents of other administraive entities + json schema
Browse files Browse the repository at this point in the history
  • Loading branch information
saerdnaer committed Oct 31, 2021
1 parent 1dbacdb commit fbd3a81
Show file tree
Hide file tree
Showing 2 changed files with 1,168 additions and 0 deletions.
87 changes: 87 additions & 0 deletions data/documents-schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$ref": "#/definitions/KlimawatchDocuments",
"definitions": {
"KlimawatchDocuments": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"entity": {
"$ref": "#/definitions/Entity"
},
"documents": {
"type": "array",
"items": {
"$ref": "#/definitions/Document"
}
}
},
"additionalProperties": false,
"required": [
"entity",
"documents"
]
}
}
},
"required": [
"data"
]
},
"Document": {
"title": "Document",
"description": "PDF Dokument oder Webseite, die den Klimaplan der Einheit beschreibt, Maßnamen auflistet und den Umsetzungsvorschritt evaluiert.",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"type": {
"type": "string",
"enum": ["PLAN", "REPORT", "ACTIONLIST", "WEBSITE"]
},
"comment": {
"type": "string"
}
},
"required": [
"url"
]
},
"Entity": {
"title": "Gebietskörperschaft: Landkreis, Gemeinde, etc",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"ags": {
"type": "string"
},
"wikidata": {
"type": "string",
"format": "uri"
},
"osm": {
"type": "string",
"format": "uri"
}
},
"required": [
"name"
]
}
}
}
Loading

0 comments on commit fbd3a81

Please sign in to comment.