Live data from Hacker News

French civil code now on GitHub

github.com

91–100 of 126 posts

Re: French civil code now on GitHub

#92
post #88

Earlier quoted context omitted.

How does it feed the data to the repo? Is it parsing reports from the parliament? If yes, how smooth did the process go?

It goes on each article on Legifrance, creates a JSON file with all the articles, which book/section they belong to, and for each article, tracks it's versions (they are dates). The crawler is in Go. Then there is a python script that takes that JSON file, creates the .md files and runs the git commands in the shell. Ultimately the sad thing is that I had to scrape this information. There were lots of pitfalls due to…

It might not be necessary to scrap anything since this data was finally released as OpenData last year: https://www.data.gouv.fr/fr/datasets/legi-codes-lois-et-regl...

Re: French civil code now on GitHub

#93
post #76

I just woke up and wow. Well, I'd be happy to answer any questions you might have of course.

So how do you go about creating the commits like the example given? Even though I live in France I've not much looked at French law - the only exception being a few articles relating to immigration. In those examples, there are modifications made to preceding laws, and it seems to me that it would require strong AI to correctly update the original laws as required by the new law. The example in the README gives the impression that we can just pull from Git and get the updated version of the whole law, is that correct? If so, how?!?!

Re: French civil code now on GitHub

#94
post #76

I just woke up and wow. Well, I'd be happy to answer any questions you might have of course.

So how do you go about creating the commits like the example given? Even though I live in France I've not much looked at French law - the only exception being a few articles relating to immigration. In those examples, there are modifications made to preceding laws, and it seems to me that it would require strong AI to correctly update the original laws as required by the new law. The example in the README gives the i…

It's because legifrance carries snapshots of the articles. Git is very good at tracking the changes between them.

So for earch article, the codes tracks "when" the article changed, stores it in a hashtable, and replays the "time" (date) for each snapshot, and creates a commit each time.

Re: French civil code now on GitHub

#96
post #91

Your licence should be more precise because you cannot put a CC licence on the legal texts, just on your ReadMe file.

How does French law work? Do the texts of laws have droit d'auteur?

They are considered "public information", so no droit d'auteur. All government data considered as public information were published starting 2011 with an open data licence, the Etalab licence similar to the UK one.

Re: French civil code now on GitHub

#97
post #92
post #88

Earlier quoted context omitted.

It goes on each article on Legifrance, creates a JSON file with all the articles, which book/section they belong to, and for each article, tracks it's versions (they are dates). The crawler is in Go. Then there is a python script that takes that JSON file, creates the .md files and runs the git commands in the shell. Ultimately the sad thing is that I had to scrape this information. There were lots of pitfalls due to…

It might not be necessary to scrap anything since this data was finally released as OpenData last year: https://www.data.gouv.fr/fr/datasets/legi-codes-lois-et-regl...

i tried using this, but it seems it seems to be just a snapshot, not the full dataset with history (i wish i'm wrong, though)

Re: French civil code now on GitHub

#99
post #91

Your licence should be more precise because you cannot put a CC licence on the legal texts, just on your ReadMe file.

How does French law work? Do the texts of laws have droit d'auteur?

As far as I understand from http://rip.journal-officiel.gouv.fr/index.php/pages/LO the laws themselves don't really have an author, but you are required to mention the source of the texts you reuse.

Re: French civil code now on GitHub

#100
This github repo seems to treat the French legal code as a flat text file. Which is useful, but I'm guessing doesn't do a good job of capturing structural changes to the legal code. Is this fair?

So I'm curious: how do legal scholars and practising lawyers track changes to legal systems over time? Do they use trees, DAGs, or something else? Do they have concepts similar to change dependencies and regressions? What special concepts or techniques does the domain require?

The UK has legislation.gov.uk [1], which seems to treat acts of the UK parliament as some kind of structured objects. Amendments can be accessed, and there is a timeline feature (for example [2]) that shows changes over time. It does have the feeling of being incomplete, though, and lagging behind changes as they happen. So is there some other, canonical, data source that this site tracks? What is it?

Anyone knowledgeable care to comment?

[1] http://www.legislation.gov.uk/

[2] http://www.legislation.gov.uk/ukpga/1974/39/section/21?timel...

Post reply on HN