Skip to content

Collect documents from EUR-LEX to investigate human-centered AI

Notifications You must be signed in to change notification settings

chaee/human-centered-eu

Repository files navigation

Human-centrism in EU legal documents

Project

For the human-centrism project by Humanet3 group, we aim to investigate how the concept of human-centrism is reflected and used in public domain in EU. For this purpose, we are collecting relevant documents from EU Cellar (The semantic repository of the Publications Office). Our keywords of interest include human-centered AI, internet, and digital transformation.

For further project description and the concept of Humanet3, please refer to our webpage.

Scripts

The project is work in progress. The repository consists of scripts

  • collecting documents from EU Cellar and process into human-readable text
  • saving retrieved files in a structured way based on the type of query and EUROVOC keyword for further use
  • conducting text analysis on the collected documents

So far, all EU treaties and EU legislations in force about several EUROVOC concepts including AI have been collected.

File structure

📦human-centered-eu
┣ 📂analyses
┃ ┗ 📜human_concordance.txt
┣:✨📂concat_results
┃ ┣ 📜all-eu-treaties-20240418-162444.txt
┃ ┣ 📜legal-in-force-EUROVOC-3030.txt
┃ ┣ 📜legal-in-force-EUROVOC-3231.txt
┃ ┣ 📜legal-in-force-EUROVOC-5188.txt
┃ ┗ 📜legal-in-force-EUROVOC-5333.txt
┣ 📂queries
┃ ┣ 📂sparql_queries ✨SPARQL queries for certain task
┃ ┃ ┣ 📜all-eu-leg-in-force.rq ✨all EU legislations in force (WIP)
┃ ┃ ┣ 📜all-eu-treaties.rq ✨all EU treaties
┃ ┃ ┣ 📜all-eurovoc-concepts.rq ✨EU legislations in force about certain EUROVOC concept
┃ ┃ ┗ 📜legal-in-force-EUROVOC.rq
┃ ┗ 📂sparql_query_results ✨saves the query result in .json
┃ ┃ ┣ 📜all-eu-treaties-20240418-162253.json
┃ ┃ ┣ 📜all-eu-treaties-20240418-162444.json
┃ ┃ ┣ 📜all-eu-treaties_20240412-145449.json
┃ ┃ ┣ 📜all-eurovoc-concepts_20240412-144328.json
┃ ┃ ┣ 📜curl_command.txt
┃ ┃ ┣ 📜legal-in-force-EUROVOC-3030_20240418-155200.json ✨naming convention: type of query - EUROVOC identifier - querying date and time
┃ ┃ ┣ 📜legal-in-force-EUROVOC-3030_20240418-160328.json
...
┃ ┃ ┣ 📜legal-in-force-EUROVOC-c_65b9cd79_20240418-160709.json
┃ ┃ ┗ 📜query_results_20240412-121407.json
┣ 📂txt_results ✨transforms xml file into readble text for each document
┃ ┣ 📂all-eu-treaties-20240418-162444
┃ ┃ ┣ 📜00348c0c-c2c0-413b-b0d9-ca6519907f9d.txt
...
┃ ┣ 📂legal-in-force-EUROVOC-3030
┃ ┃ ┣ 📜06d23b63-cae0-11ee-95d9-01aa75ed71a1.txt
...
┃ ┣ 📂legal-in-force-EUROVOC-3231
┃ ┃ ┣ 📜008a44b9-990f-11e7-b92d-01aa75ed71a1.txt
...
┃ ┣ 📂legal-in-force-EUROVOC-5188
┃ ┃ ┣ 📜00e7ffec-49e3-492b-8e8e-8839cae806bc.txt
...
┃ ┗ 📂legal-in-force-EUROVOC-5333
┃ ┃ ┗ 📜28907e25-7c65-11e9-9f05-01aa75ed71a1.txt
┣ 📜analyze.py ✨run text analysis on text files
┣ 📜compose_qry.py ✨modify SPARQL query
┣ 📜concatenate.py ✨concatenate files into one document based on the folder
┣ 📜curl_urls.py ✨send request urls (achieved by querying cellar) to the endpoint
┣ 📜eurovoc_concepts.csv ✨readible list of relevant EUROVOC conepts (WIP)
┣ 📜query_cellar.py ✨send SPARQL query to the Celar
┣ 📜run_together.py ✨query cellar - curl urls - format in one script
┗ 📜xml_to_txt.py ✨modify xml to txt

About

Collect documents from EUR-LEX to investigate human-centered AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published