-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add documents of other administraive entities + json schema
source: https://pad.okfn.de/p/klimaschutzpl%C3%A4ne via https://openknowledgegermany.slack.com/archives/CQC9RQ1NU/p1635599621014600
- Loading branch information
Showing
2 changed files
with
1,168 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.