Permalink
Find file
68a24f8 Oct 20, 2013
272 lines (269 sloc) 9.83 KB
{
"name" : "vvo",
"locale":"en",
"cubes": [
{
"name": "contracts",
"name": "contracts",
"measures": {
"contract_amount": {"label": "Contract amount"}
},
"details": [
{
"name": "contract_name",
"label": "Contract name"
},
{
"name": "bulletin_number",
"label": "Bulletin number"
},
{
"name": "source_url",
"label": "Source URL"
}
],
"dimensions": [
"date",
"cpv",
"procurer",
"supplier",
"process_type",
"criteria",
"geography"
],
"joins": [
{
"master": "bulletin_date_id",
"detail": "dm_date.id"
},
{
"master": "cpv_id",
"detail": "dm_cpv.id"
},
{
"master": "procurer_id",
"detail": "dm_procurer.id"
},
{
"master": "supplier_id",
"detail": "dm_supplier.id"
},
{
"master": "process_type_id",
"detail": "dm_process_type.id"
},
{
"master": "criteria_id",
"detail": "dm_criteria.id"
},
{
"master": "geography_id",
"detail": "dm_geography.id"
}
],
"mappings":
{
"zmluva_hodnota":"zmluva_hodnota",
"fact.date_id":"bulletin_date_id"
}
}
],
"dimensions": {
"cpv" : {
"name": "cpv",
"label": "Common Procurement Vocabulary",
"key": "cpv_id",
"levels": [
{
"name": "division",
"label": "division",
"label_attribute": "division_label",
"attributes": [
{"name":"division"},
{"name": "division_label", "locales": ["en", "sk"]},
{"name":"division_compet", "label": "competitiveness in division"}
]
},
{
"name": "group",
"label": "group",
"label_attribute": "group_label",
"attributes": [
{"name":"group", "label": "Group code"},
{"name":"group_label", "label": "Group", "locales": ["en", "sk"]},
{"name":"group_compet", "label": "competitiveness in grouop"}
]
},
{
"name": "class",
"label": "class",
"label_attribute": "class_label",
"attributes": [
{"name":"class"},
{"name":"class_label", "locales": ["en", "sk"]},
{"name":"class_compet", "label": "competitiveness in class"}
]
},
{
"name":"category",
"label": "category",
"label_attribute": "category_label",
"attributes": [
{"name":"category", "label":"category code"},
{"name":"category_label", "label": "category", "locales": ["en", "sk"]},
{"name":"category_compet", "label": "competitiveness in category"}
]
},
{
"name": "detail",
"label": "detail",
"label_attribute": "detail_label",
"attributes": [
{"name":"id"},
{"name":"detail", "label": "detail code"},
{"name":"detail_label", "label": "detail", "locales": ["en", "sk"]},
{"name":"code", "label": "CPV Code"},
{"name":"detail_compet", "label": "competitiveness"}
]
}
],
"hierarchy": ["division", "group", "class", "category", "detail"]
},
"date" : {
"label" : "Date",
"info": {
"cv-datefilter": true
},
"levels" : [
{
"name": "year",
"name": "year",
"label": "Year",
"attributes": [
{"name":"year"}
],
"info": { "cv-datefilter-field": "year" }
},
{
"name": "month",
"name": "month",
"label" : "Month",
"attributes": [
{"name":"month"},
{"name":"month_name", "locales": ["en", "sk"]},
{"name":"month_sname", "locales": ["en", "sk"]}
],
"info": { "cv-datefilter-field": "month" }
},
{
"name": "day",
"name": "day",
"label" : "Day",
"attributes": [
{"name":"id"},
{"name":"day"}],
"info": { "cv-datefilter-field": "day" }
}
],
"hierarchy" : ["year", "month", "day"]
},
"procurer" : {
"label": "Procurer",
"levels" : [
{
"name": "sector",
"attributes":[
{"name":"account_sector_code", "label": "account sector code"},
{"name":"account_sector", "label": "account sector"}
]
},
{
"name": "procurer",
"label_attribute": "name",
"attributes": [
{"name":"id", "label": "id"},
{"name":"ico", "label": "organisation ID"},
{"name":"name", "label": "name"},
{"name":"region", "label": "region"},
{"name":"address", "label": "address"},
{"name":"legal_form", "label": "legal form"},
{"name":"offer_count_avg", "label": "average number of offers"},
{"name":"competitiveness", "label": "competitiveness"}
]
}
],
"hierarchy": ["sector", "procurer"]
},
"supplier" : {
"label": "Supplier",
"levels" : [
{
"name":"supplier",
"key": "id",
"label_attribute": "name",
"attributes": [
{"name":"id"},
{"name":"ico", "label": "company ID"},
{"name":"name", "label": "name"},
{"name":"address", "label": "address"},
{"name":"country", "label": "country"},
{"name":"date_start", "label": "operating since"},
{"name":"date_end", "label": "company closed date"},
{"name":"legal_form", "label": "legal form"},
{"name":"ownership", "label": "ownership"},
{"name":"offer_count_avg", "label": "average number of offers"},
{"name":"competitiveness", "label": "competitiveness"}
]
}
]
},
"process_type" : {
"label": "Procurement type",
"levels": [
{
"name": "process_type",
"label_attribute": "description",
"attributes" : [
{"name":"id"},
{"name":"code"},
{"name":"description", "locales": ["en", "sk"]},
{"name":"sdesc", "locales": ["en", "sk"]}]
}
]
},
"criteria" : {
"label": "Evalutaion criteria",
"levels": [
{
"name":"criteria",
"label_attribute": "description",
"attributes" : [
{"name":"code"},
{"name":"description", "locales": ["en", "sk"]},
{"name":"sdesc", "locales": ["en", "sk"]},
{"name":"id"}]
}
]
},
"geography": {
"label": "Region",
"levels": [
{
"name":"okres",
"attributes": [
{"name":"okres_code", "label": "county code"},
{"name":"okres", "label": "county"}
]
},
{
"name":"kraj",
"attributes": [
{"name":"kraj_code", "label": "region code"},
{"name":"kraj", "label": "region"}
]
}
],
"hierarchy": ["kraj", "okres"]
}
}
}