Commits

pudo  committed ab3c025

model

  • Participants
  • Parent commits b502d03

Comments (0)

Files changed (1)

+{
+  "dataset": {
+    "model_rev": 1,
+    "name": "departments",
+    "label": "UK Departmental Spending", 
+    "description": "Consolited spending reports for all UK departmental
+spending above GBP 25,000 as released on a monthly basis. Data is available
+[here](http://ckan.net/package/ukgov-25k-spending), more information on the
+[Number 10 Transparency](http://transparency.number10.gov.uk/money.php) site",
+    "currency": "GBP"
+  },
+  "mapping": {
+    "amount": {
+      "type": "value",
+      "label": "Amount",
+      "description": "",
+      "column": "amount",
+      "datatype": "float"
+    },
+    "time": {
+      "type": "value",
+      "label": "Date",
+      "description": "",
+      "column": "date",
+      "datatype": "date"
+    },
+    "from": {
+      "label": "Entity",
+      "type": "entity",
+      "fields": [
+        {"column": "entity", "name": "name", "datatype": "id"},
+        {"column": "entity", "name": "label", "datatype": "string"}
+      ]
+    },
+    "to": {
+      "label": "Supplier",
+      "type": "entity",
+      "fields": [
+          {"column": "supplier", "name": "name", "datatype": "id"},
+          {"column": "supplier", "name": "label", "datatype": "string"}
+      ]
+    }
+  }
+}