Zmeos commited on
Commit
75e5c59
·
verified ·
1 Parent(s): 050a239

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +37 -64
README.md CHANGED
@@ -27,24 +27,19 @@ configs:
27
  ---
28
 
29
  <div style="display: flex; gap: 8px; align-items: center; flex-wrap: wrap;">
30
- <a href="https://doi.org/10.5334/johd.520"><img src="https://img.shields.io/badge/DOI-10.5334%2Fjohd.520-blue" alt="DOI"></a>
31
- <a href="https://doi.org/10.5281/zenodo.18402099"><img src="https://zenodo.org/badge/DOI/10.5281/zenodo.18402099.svg" alt="DOI"></a>
32
  <a href="https://graph.openaire.eu/docs/"><img src="https://img.shields.io/badge/docs-OpenAIRE%20Graph-informational" alt="OpenAIRE Graph Docs"></a>
33
  </div>
34
 
35
- [![DOI](https://img.shields.io/badge/DOI-10.5334%2Fjohd.520-blue)](https://doi.org/10.5334/johd.520) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.18402099.svg)](https://doi.org/10.5281/zenodo.18402099) [![OpenAIRE Graph Docs](https://img.shields.io/badge/docs-OpenAIRE%20Graph-informational)](https://graph.openaire.eu/docs/)
36
-
37
-
38
  # Compact OpenAIRE Citation Graph
39
 
40
- A distilled, compact representation of the complete OpenAIRE citation graph, making a
41
- very large scholarly citation network easily accessible. The core graph is shared as two
42
- files totalling ~11 GB; a larger node file with additional publication metadata is also
43
- provided.
44
 
45
- This is a working mirror for convenient loading. The **archival record of
46
- record is on Zenodo** ([10.5281/zenodo.18402099](https://doi.org/10.5281/zenodo.18402099)).
47
- Please cite the accompanying data paper (see Citation below).
48
 
49
  ## Dataset structure
50
 
@@ -55,67 +50,45 @@ The dataset is a directed citation graph: publications are nodes, citations are
55
  | `citations.parquet` | Edges — the citation links between publications | 8.8 GB | ~2B |
56
  | `publications_large.parquet` | Nodes with additional metadata fields (see below) | 72.5 GB | ~200M |
57
 
58
- ### Fields in `publications_large`
59
-
60
- | Field | Type | Description | Filled |
61
- | --- | --- | --- | --- |
62
- | `nodeId` | int32 | Unique internal node identifier | 100.00% |
63
- | `openaireId` | str | OpenAIRE platform identifier | 100.00% |
64
- | `title` | str | Publication title | 99.41% |
65
- | `authors` | list[str] | Authors | 83.84% |
66
- | `description` | str | Abstract / short description | 57.17% |
67
- | `date` | datetime | Publication date | 97.33% |
68
- | `container` | str | Journal / conference / repository | 68.45% |
69
- | `citations` | int | Number of times cited | 97.33% |
70
- | `language` | str | Language of the publication | 99.99% |
71
- | `pid_dois` | list[str] | DOI identifiers | 80.70% |
72
- | `pid_mag_ids` | list[str] | MAG IDs | 44.27% |
73
- | `pid_pmids` | list[str] | PubMed IDs | 18.18% |
74
- | `pid_handles` | list[str] | Persistent handles | 8.33% |
75
- | `pid_pmcs` | list[str] | PubMed Central IDs | 4.77% |
76
- | `pid_arxiv_ids` | list[str] | ArXiv IDs | 1.38% |
77
 
78
  ## Usage
79
-
80
- The core node and edge files load comfortably in memory. Use the PyArrow backend:
81
-
82
  ```python
83
  import pandas as pd
 
84
 
85
- df_pubs = pd.read_parquet(
86
- "publications.parquet",
87
- engine="pyarrow",
88
- dtype_backend="pyarrow",
89
- )
90
 
91
- df_cites = pd.read_parquet(
92
- "citations.parquet",
93
- engine="pyarrow",
94
- dtype_backend="pyarrow",
95
  )
96
- ```
97
 
98
- `publications_large.parquet` will not fit in memory on most machines. Select only the
99
- columns you need:
100
-
101
- ```python
102
- df_large = pd.read_parquet(
103
- "publications_large.parquet",
104
  columns=["nodeId", "title", "pid_dois"],
105
- engine="pyarrow",
106
- dtype_backend="pyarrow",
107
- )
108
- ```
109
-
110
- You can also pull files directly from the Hub:
111
-
112
- ```python
113
- from huggingface_hub import hf_hub_download
114
-
115
- path = hf_hub_download(
116
- repo_id="USERNAME/compact-openaire-citation-graph",
117
- filename="citations.parquet",
118
- repo_type="dataset",
119
  )
120
  ```
121
 
 
27
  ---
28
 
29
  <div style="display: flex; gap: 8px; align-items: center; flex-wrap: wrap;">
30
+ <a href="https://doi.org/10.5334/johd.520"><img src="https://img.shields.io/badge/DOI-10.5334%2Fjohd.520-blue" alt="Paper DOI"></a>
31
+ <a href="https://doi.org/10.5281/zenodo.18402099"><img src="https://img.shields.io/badge/Zenodo-10.5281%2Fzenodo.18402099-blue" alt="Zenodo DOI"></a>
32
  <a href="https://graph.openaire.eu/docs/"><img src="https://img.shields.io/badge/docs-OpenAIRE%20Graph-informational" alt="OpenAIRE Graph Docs"></a>
33
  </div>
34
 
 
 
 
35
  # Compact OpenAIRE Citation Graph
36
 
37
+ A the complete OpenAIRE citation graph available as simple parquet files (edge list). The core graph is shared as an edge list
38
+ files totalling ~8.8 GB; a larger node file with additional publication features (full list below) is also provided.
39
+
40
+ This is a working mirror for convenient loading. **Please cite the accompanying data paper (see Citation below).**
41
 
42
+ The nodes are publications, the edges are citations.
 
 
43
 
44
  ## Dataset structure
45
 
 
50
  | `citations.parquet` | Edges — the citation links between publications | 8.8 GB | ~2B |
51
  | `publications_large.parquet` | Nodes with additional metadata fields (see below) | 72.5 GB | ~200M |
52
 
53
+ ### Features/columns in `publications_large`
54
+
55
+ | Field | Type | Description | Memory (GB) | Filled |
56
+ | --- | --- | --- | --- | --- |
57
+ | `nodeId` | int32 | Unique internal node identifier | 0.8 | 100.00% |
58
+ | `openaireId` | str | OpenAIRE platform identifier | 9.6 | 100.00% |
59
+ | `title` | str | Publication title | 16.5 | 99.41% |
60
+ | `authors` | list[str] | Authors | 11.0 | 83.84% |
61
+ | `description` | str | Abstract / short description | 131.3 | 57.17% |
62
+ | `date` | datetime | Publication date | 0.8 | 97.33% |
63
+ | `container` | str | Journal / conference / repository | 2.2 | 68.45% |
64
+ | `citations` | int | Number of times cited | 1.6 | 97.33% |
65
+ | `language` | str | Language of the publication | 0.2 | 99.99% |
66
+ | `pid_dois` | list[str] | DOI identifiers | 5.6 | 80.70% |
67
+ | `pid_mag_ids` | list[str] | MAG IDs | 2.0 | 44.27% |
68
+ | `pid_pmids` | list[str] | PubMed IDs | 1.2 | 18.18% |
69
+ | `pid_handles` | list[str] | Persistent handles | 1.1 | 8.33% |
70
+ | `pid_pmcs` | list[str] | PubMed Central IDs | 0.9 | 4.77% |
71
+ | `pid_arxiv_ids` | list[str] | ArXiv IDs | 0.9 | 1.38% |
72
 
73
  ## Usage
 
 
 
74
  ```python
75
  import pandas as pd
76
+ from huggingface_hub import hf_hub_download
77
 
78
+ REPO = "Zmeos/Compact_OpenAIRE_citation_graph"
 
 
 
 
79
 
80
+ # citations (edges)
81
+ cites = pd.read_parquet(
82
+ hf_hub_download(REPO, "citations.parquet", repo_type="dataset"),
83
+ engine="pyarrow", dtype_backend="pyarrow",
84
  )
 
85
 
86
+ # publications_large (nodes + metadata) may not fit in memory;
87
+ # select only the columns you need
88
+ large = pd.read_parquet(
89
+ hf_hub_download(REPO, "publications_large.parquet", repo_type="dataset"),
 
 
90
  columns=["nodeId", "title", "pid_dois"],
91
+ engine="pyarrow", dtype_backend="pyarrow",
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  )
93
  ```
94