Comments (22)
I'm involved here btw - but others are too.
Here's my immediate thoughts:
- Yes, let's convert this to a simple tabular data package
- People depend on our data (this site gets deployed at http://licenses.opendefinition.org/) and has a bunch of json. We need not to break that for folks. I suggest we think properly about what API we want to offer and plan that out.
- Separately, but relatedly, we want to work out whether we want to break out the online / API stuff and move to main opendefinition repo - see okfn/opendefinition#7
from licenses.
@Ebnalblad for context see #45
from licenses.
I am not sure I understand everything you said, I do not have very good technical knowledge.
I think we agreed to make simple tabular data package. Let me explain my idea more I am thinking of dataset contains tables, such as, the name of license, the link for it, can be use for commercial purposes ?, the last version of license and so on. By this way it would be easy for people who wants to use these licenses to get all information they want about them from single dataset.
I am open to other suggestions if I have the ability to do it .
from licenses.
Skimming http://data.okfn.org/doc/data-package it seems like the obvious thing to do is to add a datapackage.json file to this repository.
I'm not sure what is to be gained by converting the existing json data to tabular data, but if there's a use case of course go for it. Preferably generating one way so the data isn't maintained in yet another place.
Thanks!
from licenses.
@mlinksva understood. Perhaps more importantly what do you think of #45? That really sets out a bit more clearly what is going on.
To be clear i think we will have both csv and json but standard form with be CSV. Why CSV? Simpler, anyone can open, and it makes valid tabular data packages :-)
from licenses.
@Ebnalblad ok, here's what i suggest are your next steps:
- convert the list of all licenses (all.json) to csv - https://github.com/okfn/licenses/blob/master/licenses/groups/all.json - i hope it is obvious how to do this (if not just ask). I would put the csv file at the base of the repo. Make sure we do this in the master branch (i've now made default branch for repo the master branch)
- add a datapackage.json so this is a proper data package
These are all "enhancments" that take nothing away, plus in master branch so we won't affect the website (http://licenses.opendefinition.org/) which deploys off the github pages branch.
from licenses.
I searched online about how to convert json to csv and i tried my services to convert all.json file to csv file but it seems there are some mistakes in .json file
" Make sure we do this in the master branch (i've now made default branch for repo the master branch)"
You mean here https://github.com/okfn/licenses ?
from licenses.
You really want to script that if you can. Very easy in a bit of code.
Maybe @jonschlinkert can help here
from licenses.
unfortunately I do not know. if there are some instructions on the web from scratch, maybe then I could do it.
from licenses.
Maybe @jonschlinkert can help here
meaning converting from csv to json?
from licenses.
other way: json to csv
from licenses.
got it, thanks. I'll take a look. is this something that should be done before the other tasks, or alongside the other tasks?
@Ebnalblad what kinds of conversion issues were you getting? was it formatting-related (e.g. data structure) or were there errors in the actual content itself? (for example, nested/escaped quotes sometimes cause issues)
from licenses.
@jonschlinkert when i tried to convert the it i was getting errors messages that there are errors in some content lines .
from licenses.
@jonschlinkert @Ebnalblad this should be super straight forward. We just want to turn https://github.com/okfn/licenses/blob/master/licenses/groups/all.json into a CSV and put it in a /data/
directory. (After that we create the data package).
Are you folks good to take a look at this.
from licenses.
@jonschlinkert and @Ebnalblad any updates here? Should be very straightforward to do and once done we can move on to #45
from licenses.
@rgrp sorry for late i asked my friend to help me, is it ok now ?
from licenses.
sorry for the lack of response, had some deadline driven projects. I see there is a CSV in the repo, looks like that part is taken care of, what's next? something I can help with?
from licenses.
@jonschlinkert the csv'ing and data packaging is done thanks to @Ebnalblad - back now to #45
from licenses.
FIXED - thanks to @Ebnalblad
from licenses.
Is the CSV file now the one place to make changes? If it is pull requests #52 and #53 should be rewritten to update the CSV instead of individual license json files. Not clear to me what the state of this is, so asking folks who participated in the CSV'ing.
from licenses.
@mlinksva good question - the basic answer should be "yes" - the issue is that is #45 is still incomplete and we need to complete that before that is truly the situation. Will seek to push forward with #45 asap. In the mean time I guess we can merge those pull requests though we should also patch the CSV file at the same time (this duping will go away with #45)
from licenses.
FIXED. Closing again as i think we are all done here.
from licenses.
Related Issues (20)
- Against DRM's license page broken HOT 1
- License Update suggestions HOT 6
- Stop being API and website and just be dataset HOT 20
- The family field, and the similar licenses HOT 4
- Wikidata IDs HOT 6
- Add test to check licenses.csv against datapackage.json HOT 7
- add french open licence HOT 3
- add a description for each field in the datapackage.json schema
- Repository labels HOT 1
- some license identifiers conflict with SPDX HOT 1
- Add French open license inside ckan group HOT 2
- LO-FR-2.0: is_generic field is of type string
- DNS misconfigured for licenses.opendefinition.org? HOT 2
- licenses.csv is not generated from json datafiles HOT 5
- Add Eclipse License version 2.0 HOT 4
- Plain language summary link for Open Database License (ODbL) v1.0 is broken HOT 3
- spam
- :pray: Missing licences > CC BY-ND 4.0, CC BY-NC-SA 4.0,CC BY-NC-ND 4.0 HOT 18
- :link: Feature Request > Add links to licence logos :camera: HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from licenses.