en:dev:modules:datapacks:draft
- Deutsch
- English
DataPacks
The format should be a “meta format”, so that other modules can use it for their purposes. XML or JSON should be considered.
E.g. as source for ZIP codes, countries, cities etc. could be taken geonames.org which provides an excellent web api with XML output. A possible datapack could be e.g.:
Datapack { uid: „5c87644a-5082-426c-ae4a-39e4a245ecf9“ label: „zipcodes“ description: „ZIP codes for Austria“ license: „CC-BY-SA“ version: „1.0“ created: „2014-03-02 23:10:24“ lastUpdated: „2014-03-02 23:10:24“ resource: „medux.masterdata.zipcodes“ data: { {5020, „Salzburg“}, {8010, „Graz“} // ... } }
The format should be able to handle diffs, so that incremental updates are possible to reduce download and database update time:
DataPackDiff { uid: "f474ed62-8b6c-4758-8f13-b4376d104bf2" datapackUid: "5c87644a-5082-426c-ae4a-39e4a245ecf9“ //refers to original DataPack label: „zipcodes update 2014-04“ description: „ZIP codes for Austria - April 2014 update“ license: „CC-BY-SA“ version: „1.0“ created: „2014-04-01 20:12:13“ lastUpdated: „2014-04-01 20:12:13“ resource: „medux.masterdata.zipcodes“ addedData: { {8020, „Graz“} } changedData: {} deletedData { {"5020", "Salzburg"} } }
Consider: Strings in datapacks should be translatable:
- separate files per language
- add .po files
- add languages in one JSON/XML DataPack
en/dev/modules/datapacks/draft.txt · Last modified: 2018/07/22 19:20 by nerdoc