Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
117 lines (110 sloc) 2.87 KB
# -*- coding: utf-8 -*-
class ODM_formats():
def get_machine_readable(self):
machine_readable = [
'cdf',
'csv',
'csv.zip',
'esri shapefile',
'geojson',
'iati',
'ical',
'ics',
'json',
'kml',
'kmz',
'netcdf',
'nt',
'ods',
'psv',
'psv.zip',
'rdf',
'rdfa',
'rss',
'shapefile',
'shp',
'shp.zip',
'sparql',
'sparql web form',
'tsv',
'ttl',
'wms',
'xlb',
'xls',
'xls.zip',
'xlsx',
'xml',
'xml.zip',
]
return machine_readable
def get_non_proprietary(self):
non_propr = [
'ascii',
'audio/mpeg',
'bmp',
'cdf',
'csv',
'csv.zip',
'dbf',
'geojson',
'geotiff',
'gzip',
'html',
'iati',
'ical',
'ics',
'jpeg 2000',
'json',
'kml',
'kmz',
'mpeg',
'netcdf',
'nt',
'ods',
'pdf',
'pdf/a',
'png',
'psv',
'psv.zip',
'rdf',
'rdfa',
'rss',
'rtf',
'sparql',
'sparql web form',
'tar',
'tiff',
'tsv',
'ttl',
'txt',
'wms',
'xml',
'xml.zip',
'zip',
]
return non_propr
class ODM_Licenses:
def get_open_licenses(self):
open_licenses=[
u'CC0',
u'ODC-PDDL',u'Open Data Commons Public Domain Dedication and Licence',u'PDDL',
u'CC BY', u'CC-BY',
u'ODC-BY',
u'CC BY-SA', u'CC-BY-SA',
u'ODC-ODbL',u'ODbL',
u'Free Art License',u'FAL',
u'GFDL',u'GNU FDL',
u'GNU GPL-2.0',u'GNU GPL-3.0',
u'OGL',u'OGL-UK-2.0',u'OGL-UK-3.0',u'SOGL',
u'Open Government Licence - Canada 2.0',u'Open Government Licence Canada 2.0',
u'OGL-Canada-2.0',
u'MirOS License',
u'Talis Community License',
u'Against DRM',
u'DL-DE-BY-2.0',u'Data licence Germany – attribution – version 2.0',u'Data licence Germany – Zero – version 2.0',
u'Design Science License',u'EFF Open Audio License',
u'SPL',
u'W3C license',
u'Licence-Ouverte', u'FR-LO'
]
return open_licenses