You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print"Give me a short, human "+Style.BRIGHT+"description"+Style.RESET_ALL+" for this data package."
57
-
printStyle.DIM+"A description gives more information about what's inside. 'Property prices in Berlin in April 2015' or 'UN population density statistics for the 2003-2013 period' let people know more specific details. (optional field)"
60
+
printStyle.DIM+"A description gives more information about what's inside. 'Property prices in Berlin in April 2015' or 'UN population density statistics for the 2003-2013 period' let people know more specific details. Markdown formatting can be used. (optional field)"
printStyle.DIM+"The version number tracks changes and improvements on the data package. If you're starting a new one, go with the default value of 0.1.0, and update it whenever there is a change in the data layout."
print"What's the "+Style.BRIGHT+"homepage"+Style.RESET_ALL+" for this data package?"
71
+
printStyle.DIM+"Please include the 'http://' prefix. (optional field)"
72
+
h=raw_input(Style.BRIGHT+"? ")
73
+
ifh:
74
+
dp.descriptor['homepage'] =h
75
+
66
76
# License
67
-
default_license="PDDL-1.0"
77
+
default_license="1"
78
+
license_options= {
79
+
"1": "ODC-PDDL-1.0",
80
+
"2": "ODbL-1.0",
81
+
"3": "ODC-BY-1.0",
82
+
"4": "CC0-1.0",
83
+
"5": "CC-BY-4.0",
84
+
"6": "CC-BY-SA-4.0",
85
+
}
68
86
print"What's the package "+Style.BRIGHT+"license"+Style.RESET_ALL+"? [Leave blank for '%s'] "%default_license
69
-
printStyle.DIM+"The license field is the identifier for the license this package is to be published under. We'll have a better menu to pick licenses, but in the meantime you can find the license identifiers at http://licenses.opendefinition.org/. The default is the Public Domain Dedication License."
printStyle.DIM+"The license field states the license under which this package is to be published. Read more about each license at http://opendefinition.org/licenses/."
88
+
print
89
+
print('1) Public Domain Dedication and License (public domain)')
90
+
print('2) Open Database License (attribution, sharealike)')
91
+
print('3) Open Data Commons Attribution License (attribution)')
print"Now I want to know about the "+Style.BRIGHT+"contributors"+Style.RESET_ALL+" of this data package."
116
+
printStyle.DIM+"I will ask you the name, e-mail and website URL for each, and then you'll be asked if you want to input another contributor or move ahead."
0 commit comments