Skip to content

Commit 0ac3ae1

Browse files
committed
Made changes to source and Readme documentation
1 parent c7f6006 commit 0ac3ae1

File tree

2 files changed

+5
-19
lines changed

2 files changed

+5
-19
lines changed

README.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Quantifying
2-
Quantifying the Commons: Measuring the diversity of Openly Licensed and Public Domain Works
2+
Quantifying the Commons: measure the size and diversity of the commons--the collection of works that are openly licensed or in the public domain
33

44

55
## Overview
@@ -8,8 +8,6 @@ This project seeks to quantify the size and diversity of the creative commons le
88

99
### The three phases of generating a report
1010
- **1-Fetch**: This phase involves collecting data from a particular source using its API. Before writing any code, we plan the analyses we want to perform by asking meaningful questions about the data. We also consider API limitations (such as query limits) and design a query strategy to work within these limitations. Then we write a python script that gets the data, it is quite important to follow the format of the scripts existing in the project and use the modules and functions where applicable. It ensures consistency in the scripts and we can easily debug issues might arise.
11-
12-
1311
- **Meaningful questions**
1412
- The reports generated by this project (and the data fetched and processed to support it) seeks to be meaningful. We hope this project will provide data and analysis that helps inform discussions about the commons--the collection of works that are openly licensed or in the public domain.
1513
The goal of this project is to help answer questions like:
@@ -20,49 +18,37 @@ This project seeks to quantify the size and diversity of the creative commons le
2018
- Which public domain dedication or licenses are the most popular?
2119
- What are the correlations between public domain dedication or licenses and
2220
region, language, domain/endeavor, etc.?
23-
2421
- **Limitations of an API**
2522
- Some data sources provide APIs with query limits (it can be daily or hourly) depending on what is given in the documentation. This restricts how many requests that can be made in the specified period of time. It is important to plan a query strategy and schedule fetch jobs to stay within the allowed limits.
26-
2723
- **Headings of data in 1-fetch**
2824
- [Tool identifier](https://creativecommons.org/share-your-work/cclicenses/): A unique identifier used to distinguish each Creative Commons legal tool within the dataset. This helps ensure consistency when tracking tools across different data sources.
2925
- [SPDX identifier](https://spdx.org/licenses/): A standardized identifier maintained by the Software Package Data Exchange (SPDX) project. It provides a consistent way to reference licenses in applications.
30-
31-
3226
- **2-Process**: In this phase, the fetched data is transformed into a structured and standardized format for analysis. The data is then analyzed and categorized based on defined criteria to extract insights that answer the meaningful questions identified during the 1-fetch phase.
33-
34-
3527
- **3-report**: This phase focuses on presenting the results of the analysis. We generate graphs and summaries that clearly show trends, patterns, and distributions in the data. These reports help communicate key insights about the size, diversity, and characteristics of openly licensed and public-domain works.
3628

3729

3830
### Automation scripts
3931
For automating these phases, the project uses Python scripts to fetch, process, and report data. GitHub Actions is used to automatically run these scripts on a defined schedule and on code updates. It handles script execution, manages dependencies, and ensures the workflow runs consistently.
40-
4132
- **Script assumptions**
4233
- Execution schedule for each quarter:
4334
- 1-Fetch: first month, 1st half of second month
4435
- 2-Process: 2nd half of second month
4536
- 3-Report: third month
46-
4737
- **Script requirements**
4838
- *Must be safe*
4939
- Scripts must not make any changes with default options
5040
- Easiest way to run script should also be the safest
5141
- Have options spelled out
5242
- Must be timely
53-
5443
- *Scripts should complete within a maximum of 45 minutes*
5544
- *Scripts shouldn't take longer than 3 minutes with default options*
5645
- That way there’s a quicker way to see what is happening when it is running; see execution, without errors, etc. Then later in production it can be run with longer options
57-
5846
- *Must be idempotent (Idempotence: [Wikipedia](https://en.wikipedia.org/wiki/Idempotence))*
5947
- This applies to both the data fetched and the data stored.
6048
If the data changes randomly, we can't draw meaningful conclusions.
61-
6249
- *Balanced use of third-party libraries*
6350
- Third-party libraries should be leveraged when they are:
6451
- API specific (google-api-python-client, internetarchive, etc.)
65-
6652
- File formats
6753
- CSV: the format is well supported (rendered on GitHub, etc.), easy to use, and the data used by the project is simple enough to avoid any shortcomings.
6854
- YAML: prioritizes human readability which addresses the primary costs and risks associated with configuration files.

sources.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,10 @@ provides access to information of all wikimedia projects including the different
159159
language edition of wikipedia. It runs on the Meta-Wiki API.
160160

161161
**API documentation link:**
162-
[WIKIPEDIA_BASE_URL documentation](https://en.wikipedia.org/w/api.php)
163-
[WIKIPEDIA_BASE_URL reference page](https://www.mediawiki.org/wiki/API:Main_page)
164-
[WIKIPEDIA_MATRIX_URL documentation](https://meta.wikimedia.org/w/api.php)
165-
[WIKIPEDIA_MATRIX_URL reference page](https://www.mediawiki.org/wiki/API:Sitematrix)
162+
- [WIKIPEDIA_BASE_URL documentation](https://en.wikipedia.org/w/api.php)
163+
- [WIKIPEDIA_BASE_URL reference page](https://www.mediawiki.org/wiki/API:Main_page)
164+
- [WIKIPEDIA_MATRIX_URL documentation](https://meta.wikimedia.org/w/api.php)
165+
- [WIKIPEDIA_MATRIX_URL reference page](https://www.mediawiki.org/wiki/API:Sitematrix)
166166

167167
**API information:**
168168
- No API key required

0 commit comments

Comments
 (0)