Coder Social home page Coder Social logo

Free/Open Licenses Data Package about licenses HOT 22 CLOSED

okfn avatar okfn commented on August 15, 2024
Free/Open Licenses Data Package

from licenses.

Comments (22)

rufuspollock avatar rufuspollock commented on August 15, 2024

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.

rufuspollock avatar rufuspollock commented on August 15, 2024

@Ebnalblad for context see #45

from licenses.

Ebnalblad avatar Ebnalblad commented on August 15, 2024

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.

mlinksva avatar mlinksva commented on August 15, 2024

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.

rufuspollock avatar rufuspollock commented on August 15, 2024

@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.

rufuspollock avatar rufuspollock commented on August 15, 2024

@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.

Ebnalblad avatar Ebnalblad commented on August 15, 2024

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.

rufuspollock avatar rufuspollock commented on August 15, 2024

You really want to script that if you can. Very easy in a bit of code.

Maybe @jonschlinkert can help here

from licenses.

Ebnalblad avatar Ebnalblad commented on August 15, 2024

unfortunately I do not know. if there are some instructions on the web from scratch, maybe then I could do it.

from licenses.

jonschlinkert avatar jonschlinkert commented on August 15, 2024

Maybe @jonschlinkert can help here

meaning converting from csv to json?

from licenses.

rufuspollock avatar rufuspollock commented on August 15, 2024

other way: json to csv

from licenses.

jonschlinkert avatar jonschlinkert commented on August 15, 2024

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.

Ebnalblad avatar Ebnalblad commented on August 15, 2024

@jonschlinkert when i tried to convert the it i was getting errors messages that there are errors in some content lines .

from licenses.

rufuspollock avatar rufuspollock commented on August 15, 2024

@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.

rufuspollock avatar rufuspollock commented on August 15, 2024

@jonschlinkert and @Ebnalblad any updates here? Should be very straightforward to do and once done we can move on to #45

from licenses.

Ebnalblad avatar Ebnalblad commented on August 15, 2024

@rgrp sorry for late i asked my friend to help me, is it ok now ?

from licenses.

jonschlinkert avatar jonschlinkert commented on August 15, 2024

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.

rufuspollock avatar rufuspollock commented on August 15, 2024

@jonschlinkert the csv'ing and data packaging is done thanks to @Ebnalblad - back now to #45

from licenses.

rufuspollock avatar rufuspollock commented on August 15, 2024

FIXED - thanks to @Ebnalblad

from licenses.

mlinksva avatar mlinksva commented on August 15, 2024

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.

rufuspollock avatar rufuspollock commented on August 15, 2024

@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.

rufuspollock avatar rufuspollock commented on August 15, 2024

FIXED. Closing again as i think we are all done here.

from licenses.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.