[okfn-labs] Maker Nights

Adi Eyal adi at code4sa.org
Tue Nov 19 20:23:10 UTC 2013


You're right, the output should be tightened up a little. I'll add an
issue for that.

Adi

On 19 November 2013 22:08, Alioune Dia <dia.aliounes at gmail.com> wrote:
> Yah, I understand Now :) , this is an approche And The Api caller can build csv
> files based on The json response :
> {
>     "event": {
>         "type": "National",
>         "description": "22 apr 2009 national election"
>     },
>     "voting_district": {
>         "code": "10590006",
>         "ward": "http://iec.code4sa.org/wards/1/"
>     },
>     "party": {
>         "name": "A PARTY"
>     },
>     "votes": 0
> },
> {
>     "event": {
>         "type": "National",
>         "description": "22 apr 2009 national election"
>     },
>     "voting_district": {
>         "code": "10590006",
>         "ward": "http://iec.code4sa.org/wards/1/"
>     },
>     "party": {
>         "name": "AFRICAN CHRISTIAN DEMOCRATIC PARTY"
>     },
>     "votes": 9
> }
>
> But for our use case I prefer juste something like that , because as
> you can see there are some reondances between two even  items
> ( code for exemple).I prefer a json response like that.
>
> {
>    "type": "National",
>    "resource_url" : "/path/to/download/file/",
>    "licence" : "GPL",
>    "extras" : ""
> }
> And perhaps some others usefulls informations like the #licences#
> and /or informations about the #data providers# .
>
> --Ad
>
> 2013/11/19 Adi Eyal <adi at code4sa.org>:
>> For the current toy API that you're looking at, I have only included
>> the 2009 general elections. We've had 4 general elections and 4
>> municipal elections since 1994 so there are more sources to add. The
>> documentation is lacking but you can find the original source file if
>> you poke around
>> https://github.com/Code4SA/elections-api/blob/master/fabfile.py.
>>
>> Do you think that
>> http://localhost:8000/results/?voting_district=10590006 currently
>> returns a paginated json file - e.g.
>> http://iec.code4sa.org/results/?voting_district=10590006. Is that what
>> you mean? Or do you think an actual flattened csv file might also be
>> useful?
>>
>> Adi
>>
>> On 19 November 2013 21:31, Alioune Dia <dia.aliounes at gmail.com> wrote:
>>> Hi  adieyal ,
>>> Yes !,  but I  imagine we can have more than one data files depending
>>> to your model  design .  I hope  that calling
>>> http://localhost:8000/results/?voting_district=10590006
>>> for exemple can return a resource (csv /xls file)  for download?
>>> --Ad
>>>
>>> 2013/11/19 Adi Eyal <adi at code4sa.org>:
>>>> Hi Alioune
>>>>
>>>> Do you mean the original data file?
>>>>
>>>> Adi
>>>>
>>>> On 19 November 2013 20:40, Alioune Dia <dia.aliounes at gmail.com> wrote:
>>>>> Hi  adieyal ,
>>>>>
>>>>> I think It would be interresting to link some resources to the existing model
>>>>> What about the linked resource that someone can download .I asked this
>>>>> question because I don't see anything  In the model defintion here
>>>>> https://github.com/Code4SA/elections-api/blob/master/server/iec/models.py
>>>>> .Perhaps i missed something ?
>>>>> --Ad
>>>>>
>>>>> 2013/11/18 Adi Eyal <adi at code4sa.org>:
>>>>>> Thanks.
>>>>>>
>>>>>> So I've been holding a bunch of weekly Thursday night meet-ups, four
>>>>>> so far. I call them unhackathons though Rufus introduced me to Maker
>>>>>> Nights (which is a cool name) I might change it to that. Similar to
>>>>>> the Maker Nights, I've been trying to create a community of
>>>>>> practitioners who actually do stuff. Unfortunatelym I find it quite
>>>>>> difficult to get buy-in. We've had a few interesting meet-ups where
>>>>>> people have come and demonstrated work that they've or we discussed
>>>>>> various ideas around data, but it hasn't amounted to much. I'm not
>>>>>> quite sure how to transition to actual code writing. I've put together
>>>>>> a couple of projects, [1], [2] for people to contribute to. The latter
>>>>>> is an API on top of existing elections data which I thought would be
>>>>>> useful infrastructure for a family of interesting elections related
>>>>>> applications. I've also put together an ideas board to post ideas on
>>>>>> [3]. There just seems to be a hump that I'm struggling to overcome,
>>>>>> moving from talking to doing.
>>>>>>
>>>>>> Community building is quite tough and I would appreciate any advice
>>>>>> this list has regarding how to make it happen.
>>>>>>
>>>>>> [1] https://github.com/Code4SA/medicine-price-registry
>>>>>> [2] https://github.com/Code4SA/elections-api
>>>>>> [3] http://code4sa.hackdash.org/
>>>>>>
>>>>>> Adi
>>>>>>
>>>>>> On 18 November 2013 18:26, todd.d.robbins at gmail.com
>>>>>> <todd.d.robbins at gmail.com> wrote:
>>>>>>> What do you have in mind Adi?
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Nov 18, 2013 at 5:19 AM, Adi Eyal <adi at code4sa.org> wrote:
>>>>>>>>
>>>>>>>> Hi All
>>>>>>>>
>>>>>>>> Apologies for the stupid question but does this mailing list also
>>>>>>>> cater for discussions on Maker Nights? I'm in need of advice.
>>>>>>>>
>>>>>>>> Adi
>>>>>>>>
>>>>>>>> --
>>>>>>>> Adi Eyal
>>>>>>>> Director
>>>>>>>> Code for South Africa
>>>>>>>> Promoting informed decision-making
>>>>>>>>
>>>>>>>> phone: +27 78 014 2469
>>>>>>>> skype: adieyalcas
>>>>>>>> linkedin: http://za.linkedin.com/pub/dir/Adi/Eyal
>>>>>>>> web: http://www.code4sa.org
>>>>>>>> twitter: @soapsudtycoon
>>>>>>>>
>>>>>>>> For more information on how to participate in the open data community
>>>>>>>> in South Africa, go to: http://www.code4sa.org/#community
>>>>>>>> _______________________________________________
>>>>>>>> okfn-labs mailing list
>>>>>>>> okfn-labs at lists.okfn.org
>>>>>>>> http://lists.okfn.org/mailman/listinfo/okfn-labs
>>>>>>>> Unsubscribe: http://lists.okfn.org/mailman/options/okfn-labs
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Tod Robbins
>>>>>>> Digital Asset Manager, MLIS
>>>>>>> todrobbins.com | @todrobbins
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Adi Eyal
>>>>>> Director
>>>>>> Code for South Africa
>>>>>> Promoting informed decision-making
>>>>>>
>>>>>> phone: +27 78 014 2469
>>>>>> skype: adieyalcas
>>>>>> linkedin: http://za.linkedin.com/pub/dir/Adi/Eyal
>>>>>> web: http://www.code4sa.org
>>>>>> twitter: @soapsudtycoon
>>>>>>
>>>>>> For more information on how to participate in the open data community
>>>>>> in South Africa, go to: http://www.code4sa.org/#community
>>>>>> _______________________________________________
>>>>>> okfn-labs mailing list
>>>>>> okfn-labs at lists.okfn.org
>>>>>> http://lists.okfn.org/mailman/listinfo/okfn-labs
>>>>>> Unsubscribe: http://lists.okfn.org/mailman/options/okfn-labs
>>>>
>>>>
>>>>
>>>> --
>>>> Adi Eyal
>>>> Director
>>>> Code for South Africa
>>>> Promoting informed decision-making
>>>>
>>>> phone: +27 78 014 2469
>>>> skype: adieyalcas
>>>> linkedin: http://za.linkedin.com/pub/dir/Adi/Eyal
>>>> web: http://www.code4sa.org
>>>> twitter: @soapsudtycoon
>>>>
>>>> For more information on how to participate in the open data community
>>>> in South Africa, go to: http://www.code4sa.org/#community
>>
>>
>>
>> --
>> Adi Eyal
>> Director
>> Code for South Africa
>> Promoting informed decision-making
>>
>> phone: +27 78 014 2469
>> skype: adieyalcas
>> linkedin: http://za.linkedin.com/pub/dir/Adi/Eyal
>> web: http://www.code4sa.org
>> twitter: @soapsudtycoon
>>
>> For more information on how to participate in the open data community
>> in South Africa, go to: http://www.code4sa.org/#community



-- 
Adi Eyal
Director
Code for South Africa
Promoting informed decision-making

phone: +27 78 014 2469
skype: adieyalcas
linkedin: http://za.linkedin.com/pub/dir/Adi/Eyal
web: http://www.code4sa.org
twitter: @soapsudtycoon

For more information on how to participate in the open data community
in South Africa, go to: http://www.code4sa.org/#community



More information about the okfn-labs mailing list