-
Notifications
You must be signed in to change notification settings - Fork 0
/
ckan_datasets.py
32 lines (30 loc) · 1.15 KB
/
ckan_datasets.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from ckan_datasets.base import Dataset as BaseDataset, Distribution as BaseDistribution
from ckan_datasets.geodcatap import Dataset as GeoDataset, Distribution as GeoDistribution
from ckan_datasets.resources.datadictionary import DataDictionary as BaseDataDictionary, DataDictionaryField as BaseDataDictionaryField
# CKAN Schemas available
CKAN_DATASET_SCHEMAS = {
"geodcatap": {
"dataset": GeoDataset,
"distribution": GeoDistribution,
"datadictionary": BaseDataDictionary,
"datadictionaryfield": BaseDataDictionaryField
},
"geodcatap_es": {
"dataset": GeoDataset,
"distribution": GeoDistribution,
"datadictionary": BaseDataDictionary,
"datadictionaryfield": BaseDataDictionaryField
},
"geodcatap_eu": {
"dataset": GeoDataset,
"distribution": GeoDistribution,
"datadictionary": BaseDataDictionary,
"datadictionaryfield": BaseDataDictionaryField
},
"default": {
"dataset": BaseDataset,
"distribution": BaseDistribution,
"datadictionary": BaseDataDictionary,
"datadictionaryfield": BaseDataDictionaryField
}
}