bib2graph 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2025 Luis Eduardo Higuera Calderon
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
@@ -0,0 +1,206 @@
1
+ Metadata-Version: 2.1
2
+ Name: bib2graph
3
+ Version: 0.1.0
4
+ Summary: A Python package for bibliometric data processing and network analysis
5
+ Home-page: https://github.com/complexluise/bib2graph
6
+ License: Apache-2.0
7
+ Keywords: bibliometrics,network-analysis,citation-analysis,data-science,neo4j
8
+ Author: Luis Eduardo Higuera Calderon
9
+ Author-email: lhiguerac@unal.edu.co
10
+ Maintainer: Luis Eduardo Higuera Calderon
11
+ Maintainer-email: lhiguerac@unal.edu.co
12
+ Requires-Python: >=3.12,<4.0
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: License :: OSI Approved :: Apache Software License
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Topic :: Scientific/Engineering :: Information Analysis
20
+ Requires-Dist: bibtexparser (>=1.4.0,<2.0.0)
21
+ Requires-Dist: crossrefapi (>=1.5.0,<2.0.0)
22
+ Requires-Dist: elsapy (>=0.5.0,<0.6.0)
23
+ Requires-Dist: lxml (>=5.4.0,<6.0.0)
24
+ Requires-Dist: neomodel (>=5.4.5,<6.0.0)
25
+ Requires-Dist: networkx (>=3.1,<4.0)
26
+ Requires-Dist: pandas (>=2.0.0,<3.0.0)
27
+ Requires-Dist: pys2 (>=1.1.0,<2.0.0)
28
+ Requires-Dist: requests (>=2.31.0,<3.0.0)
29
+ Project-URL: Documentation, https://github.com/complexluise/bib2graph
30
+ Project-URL: Repository, https://github.com/complexluise/bib2graph
31
+ Description-Content-Type: text/markdown
32
+
33
+
34
+ # bib2graph
35
+
36
+ Un paquete de Python para el procesamiento de datos bibliométricos y análisis de redes.
37
+
38
+ [![PyPI version](https://img.shields.io/pypi/v/bib2graph.svg)](https://pypi.org/project/bib2graph/)
39
+ [![License](https://img.shields.io/github/license/complexluise/bib2graph.svg)](https://github.com/complexluise/bib2graph/blob/main/LICENSE)
40
+ [![Python Versions](https://img.shields.io/pypi/pyversions/bib2graph.svg)](https://pypi.org/project/bib2graph/)
41
+
42
+ ## Descripción
43
+
44
+ `bib2graph` es un pipeline de datos completo para el análisis bibliométrico de publicaciones científicas. Transforma datos bibliográficos en representaciones de red para análisis avanzados. El pipeline consta de tres fases principales:
45
+
46
+ 1. **Ingesta de Datos**: Analiza y normaliza metadatos bibliográficos desde BibTeX y los carga en una base de datos de grafos Neo4j.
47
+
48
+ 2. **Enriquecimiento de Datos**: Consulta APIs externas (Semantic Scholar, CrossRef, Scopus) para obtener metadatos adicionales como citas, referencias completas, ORCIDs de autores e información de financiamiento.
49
+
50
+ 3. **Extracción de Redes**: Genera varias redes para análisis, incluyendo redes de co-citación, redes de colaboración entre autores, redes de colaboración institucional y redes de co-ocurrencia de palabras clave.
51
+
52
+ ## Arquitectura
53
+
54
+ La arquitectura del sistema consta de tres módulos principales:
55
+
56
+ 1. **Módulo de Ingesta de Datos** (`consigue_los_articulos.py`): Responsable de cargar datos desde diferentes fuentes y normalizarlos para su almacenamiento en Neo4j.
57
+
58
+ 2. **Módulo de Enriquecimiento de Datos** (`enriquecimiento.py`): Consulta APIs externas para obtener metadatos adicionales y actualizar la base de datos.
59
+
60
+ 3. **Módulo de Análisis de Redes** (`analisis_red.py`): Extrae diferentes tipos de redes del grafo y las exporta para análisis posterior.
61
+
62
+ ## Requisitos
63
+
64
+ - Python 3.12 o superior
65
+ - Base de datos Neo4j (instalación local o en la nube)
66
+ - Claves de API para servicios externos (opcional):
67
+ - API de Semantic Scholar
68
+ - API de Scopus
69
+
70
+ ## Instalación
71
+
72
+ ### Desde PyPI (Recomendado)
73
+
74
+ ```bash
75
+ pip install bib2graph
76
+ ```
77
+
78
+ ### Desde el Código Fuente
79
+
80
+ 1. Clonar el repositorio:
81
+ ```bash
82
+ git clone https://github.com/complexluise/bib2graph.git
83
+ cd bib2graph
84
+ ```
85
+
86
+ 2. Instalar dependencias con Poetry:
87
+ ```bash
88
+ poetry install
89
+ ```
90
+
91
+ ### Configuración
92
+
93
+ Configurar variables de entorno para las claves de API y la conexión a Neo4j (opcional):
94
+
95
+ ```bash
96
+ # Para Linux/macOS
97
+ export SEMANTIC_SCHOLAR_API_KEY="tu_clave_api"
98
+ export SCOPUS_API_KEY="tu_clave_api"
99
+ export NEO4J_URI="bolt://localhost:7687"
100
+ export NEO4J_USER="neo4j"
101
+ export NEO4J_PASSWORD="tu_contraseña"
102
+
103
+ # Para Windows (PowerShell)
104
+ $env:SEMANTIC_SCHOLAR_API_KEY="tu_clave_api"
105
+ $env:SCOPUS_API_KEY="tu_clave_api"
106
+ $env:NEO4J_URI="bolt://localhost:7687"
107
+ $env:NEO4J_USER="neo4j"
108
+ $env:NEO4J_PASSWORD="tu_contraseña"
109
+ ```
110
+
111
+ ## Uso
112
+
113
+ El script principal proporciona una interfaz de línea de comandos para ejecutar el pipeline completo o fases individuales:
114
+
115
+ ### Ejecutar el pipeline completo:
116
+ ```bash
117
+ bib2graph --mode full
118
+ ```
119
+
120
+ ### Ejecutar solo la fase de ingesta de datos:
121
+ ```bash
122
+ bib2graph --mode ingest --input data/file.bib --file-type bibtex
123
+ ```
124
+
125
+ ### Ejecutar solo la fase de enriquecimiento de datos:
126
+ ```bash
127
+ bib2graph --mode enrich
128
+ ```
129
+
130
+ ### Ejecutar solo la fase de análisis de redes:
131
+ ```bash
132
+ bib2graph --mode analyze --network-type cocitation --output-dir results
133
+ ```
134
+
135
+ ### Opciones disponibles:
136
+ ```
137
+ --mode Modo de operación (ingest, enrich, analyze, full)
138
+ --input Archivo o directorio de entrada
139
+ --file-type Tipo de archivo (csv, bibtex, json)
140
+ --network-type Tipo de red (cocitation, author, institution, keyword)
141
+ --min-weight Peso mínimo para relaciones
142
+ --output-dir Directorio para archivos de salida
143
+ --community-algorithm Algoritmo de detección de comunidades (louvain, label_propagation, greedy_modularity)
144
+ --neo4j-uri URI de conexión a Neo4j
145
+ --neo4j-user Nombre de usuario de Neo4j
146
+ --neo4j-password Contraseña de Neo4j
147
+ ```
148
+
149
+ ## Ejemplos
150
+
151
+ ### Procesar un archivo BibTeX y generar una red de co-citación:
152
+ ```bash
153
+ bib2graph --mode full --input data/references.bib --network-type cocitation --output-dir results
154
+ ```
155
+
156
+ ### Generar una red de colaboración entre autores:
157
+ ```bash
158
+ bib2graph --mode analyze --network-type author --output-dir results
159
+ ```
160
+
161
+ ### Generar una red de co-ocurrencia de palabras clave:
162
+ ```bash
163
+ bib2graph --mode analyze --network-type keyword --output-dir results
164
+ ```
165
+
166
+ ### Procesar un archivo CSV con un peso mínimo de arista de 2:
167
+ ```bash
168
+ bib2graph --mode full --input data/citations.csv --file-type csv --network-type cocitation --min-weight 2 --output-dir results
169
+ ```
170
+
171
+ ## Estructura del Proyecto
172
+
173
+ ```
174
+ bib2graph/
175
+ ├── data/ # Directorio de datos de entrada
176
+ │ └── references.bib # Archivo BibTeX de ejemplo
177
+ ├── src/ # Código fuente
178
+ │ ├── consigue_los_articulos.py # Módulo de ingesta de datos
179
+ │ ├── enriquecimiento.py # Módulo de enriquecimiento de datos
180
+ │ ├── analisis_red.py # Módulo de análisis de redes
181
+ │ ├── models.py # Modelos de datos
182
+ │ └── queries.py # Consultas a la base de datos
183
+ ├── results/ # Resultados generados
184
+ ├── main.py # Script principal
185
+ ├── pyproject.toml # Configuración de Poetry
186
+ ├── .github/ # Flujos de trabajo de GitHub
187
+ │ └── workflows/ # Flujos de trabajo de CI/CD
188
+ └── README.md # Documentación
189
+ ```
190
+
191
+ ## Licencia
192
+
193
+ Este proyecto está licenciado bajo la Licencia Apache 2.0 - consulte el archivo [LICENSE](LICENSE) para más detalles.
194
+
195
+ ## Contribuciones
196
+
197
+ ¡Las contribuciones son bienvenidas! No dude en enviar un Pull Request.
198
+
199
+ ## Cita
200
+
201
+ Si utiliza bib2graph en su investigación, por favor cítelo como:
202
+
203
+ ```
204
+ Higuera-Calderon, L. E. (2025). bib2graph: Un paquete de Python para el procesamiento de datos bibliométricos y análisis de redes.
205
+ https://github.com/complexluise/bib2graph
206
+ ```
@@ -0,0 +1,174 @@
1
+
2
+ # bib2graph
3
+
4
+ Un paquete de Python para el procesamiento de datos bibliométricos y análisis de redes.
5
+
6
+ [![PyPI version](https://img.shields.io/pypi/v/bib2graph.svg)](https://pypi.org/project/bib2graph/)
7
+ [![License](https://img.shields.io/github/license/complexluise/bib2graph.svg)](https://github.com/complexluise/bib2graph/blob/main/LICENSE)
8
+ [![Python Versions](https://img.shields.io/pypi/pyversions/bib2graph.svg)](https://pypi.org/project/bib2graph/)
9
+
10
+ ## Descripción
11
+
12
+ `bib2graph` es un pipeline de datos completo para el análisis bibliométrico de publicaciones científicas. Transforma datos bibliográficos en representaciones de red para análisis avanzados. El pipeline consta de tres fases principales:
13
+
14
+ 1. **Ingesta de Datos**: Analiza y normaliza metadatos bibliográficos desde BibTeX y los carga en una base de datos de grafos Neo4j.
15
+
16
+ 2. **Enriquecimiento de Datos**: Consulta APIs externas (Semantic Scholar, CrossRef, Scopus) para obtener metadatos adicionales como citas, referencias completas, ORCIDs de autores e información de financiamiento.
17
+
18
+ 3. **Extracción de Redes**: Genera varias redes para análisis, incluyendo redes de co-citación, redes de colaboración entre autores, redes de colaboración institucional y redes de co-ocurrencia de palabras clave.
19
+
20
+ ## Arquitectura
21
+
22
+ La arquitectura del sistema consta de tres módulos principales:
23
+
24
+ 1. **Módulo de Ingesta de Datos** (`consigue_los_articulos.py`): Responsable de cargar datos desde diferentes fuentes y normalizarlos para su almacenamiento en Neo4j.
25
+
26
+ 2. **Módulo de Enriquecimiento de Datos** (`enriquecimiento.py`): Consulta APIs externas para obtener metadatos adicionales y actualizar la base de datos.
27
+
28
+ 3. **Módulo de Análisis de Redes** (`analisis_red.py`): Extrae diferentes tipos de redes del grafo y las exporta para análisis posterior.
29
+
30
+ ## Requisitos
31
+
32
+ - Python 3.12 o superior
33
+ - Base de datos Neo4j (instalación local o en la nube)
34
+ - Claves de API para servicios externos (opcional):
35
+ - API de Semantic Scholar
36
+ - API de Scopus
37
+
38
+ ## Instalación
39
+
40
+ ### Desde PyPI (Recomendado)
41
+
42
+ ```bash
43
+ pip install bib2graph
44
+ ```
45
+
46
+ ### Desde el Código Fuente
47
+
48
+ 1. Clonar el repositorio:
49
+ ```bash
50
+ git clone https://github.com/complexluise/bib2graph.git
51
+ cd bib2graph
52
+ ```
53
+
54
+ 2. Instalar dependencias con Poetry:
55
+ ```bash
56
+ poetry install
57
+ ```
58
+
59
+ ### Configuración
60
+
61
+ Configurar variables de entorno para las claves de API y la conexión a Neo4j (opcional):
62
+
63
+ ```bash
64
+ # Para Linux/macOS
65
+ export SEMANTIC_SCHOLAR_API_KEY="tu_clave_api"
66
+ export SCOPUS_API_KEY="tu_clave_api"
67
+ export NEO4J_URI="bolt://localhost:7687"
68
+ export NEO4J_USER="neo4j"
69
+ export NEO4J_PASSWORD="tu_contraseña"
70
+
71
+ # Para Windows (PowerShell)
72
+ $env:SEMANTIC_SCHOLAR_API_KEY="tu_clave_api"
73
+ $env:SCOPUS_API_KEY="tu_clave_api"
74
+ $env:NEO4J_URI="bolt://localhost:7687"
75
+ $env:NEO4J_USER="neo4j"
76
+ $env:NEO4J_PASSWORD="tu_contraseña"
77
+ ```
78
+
79
+ ## Uso
80
+
81
+ El script principal proporciona una interfaz de línea de comandos para ejecutar el pipeline completo o fases individuales:
82
+
83
+ ### Ejecutar el pipeline completo:
84
+ ```bash
85
+ bib2graph --mode full
86
+ ```
87
+
88
+ ### Ejecutar solo la fase de ingesta de datos:
89
+ ```bash
90
+ bib2graph --mode ingest --input data/file.bib --file-type bibtex
91
+ ```
92
+
93
+ ### Ejecutar solo la fase de enriquecimiento de datos:
94
+ ```bash
95
+ bib2graph --mode enrich
96
+ ```
97
+
98
+ ### Ejecutar solo la fase de análisis de redes:
99
+ ```bash
100
+ bib2graph --mode analyze --network-type cocitation --output-dir results
101
+ ```
102
+
103
+ ### Opciones disponibles:
104
+ ```
105
+ --mode Modo de operación (ingest, enrich, analyze, full)
106
+ --input Archivo o directorio de entrada
107
+ --file-type Tipo de archivo (csv, bibtex, json)
108
+ --network-type Tipo de red (cocitation, author, institution, keyword)
109
+ --min-weight Peso mínimo para relaciones
110
+ --output-dir Directorio para archivos de salida
111
+ --community-algorithm Algoritmo de detección de comunidades (louvain, label_propagation, greedy_modularity)
112
+ --neo4j-uri URI de conexión a Neo4j
113
+ --neo4j-user Nombre de usuario de Neo4j
114
+ --neo4j-password Contraseña de Neo4j
115
+ ```
116
+
117
+ ## Ejemplos
118
+
119
+ ### Procesar un archivo BibTeX y generar una red de co-citación:
120
+ ```bash
121
+ bib2graph --mode full --input data/references.bib --network-type cocitation --output-dir results
122
+ ```
123
+
124
+ ### Generar una red de colaboración entre autores:
125
+ ```bash
126
+ bib2graph --mode analyze --network-type author --output-dir results
127
+ ```
128
+
129
+ ### Generar una red de co-ocurrencia de palabras clave:
130
+ ```bash
131
+ bib2graph --mode analyze --network-type keyword --output-dir results
132
+ ```
133
+
134
+ ### Procesar un archivo CSV con un peso mínimo de arista de 2:
135
+ ```bash
136
+ bib2graph --mode full --input data/citations.csv --file-type csv --network-type cocitation --min-weight 2 --output-dir results
137
+ ```
138
+
139
+ ## Estructura del Proyecto
140
+
141
+ ```
142
+ bib2graph/
143
+ ├── data/ # Directorio de datos de entrada
144
+ │ └── references.bib # Archivo BibTeX de ejemplo
145
+ ├── src/ # Código fuente
146
+ │ ├── consigue_los_articulos.py # Módulo de ingesta de datos
147
+ │ ├── enriquecimiento.py # Módulo de enriquecimiento de datos
148
+ │ ├── analisis_red.py # Módulo de análisis de redes
149
+ │ ├── models.py # Modelos de datos
150
+ │ └── queries.py # Consultas a la base de datos
151
+ ├── results/ # Resultados generados
152
+ ├── main.py # Script principal
153
+ ├── pyproject.toml # Configuración de Poetry
154
+ ├── .github/ # Flujos de trabajo de GitHub
155
+ │ └── workflows/ # Flujos de trabajo de CI/CD
156
+ └── README.md # Documentación
157
+ ```
158
+
159
+ ## Licencia
160
+
161
+ Este proyecto está licenciado bajo la Licencia Apache 2.0 - consulte el archivo [LICENSE](LICENSE) para más detalles.
162
+
163
+ ## Contribuciones
164
+
165
+ ¡Las contribuciones son bienvenidas! No dude en enviar un Pull Request.
166
+
167
+ ## Cita
168
+
169
+ Si utiliza bib2graph en su investigación, por favor cítelo como:
170
+
171
+ ```
172
+ Higuera-Calderon, L. E. (2025). bib2graph: Un paquete de Python para el procesamiento de datos bibliométricos y análisis de redes.
173
+ https://github.com/complexluise/bib2graph
174
+ ```
@@ -0,0 +1,20 @@
1
+ """
2
+ bib2graph - A Python package for bibliometric data processing and network analysis.
3
+
4
+ This package provides tools for:
5
+ 1. Ingesting bibliographic data from various sources
6
+ 2. Enriching data with additional metadata from external APIs
7
+ 3. Extracting and analyzing bibliometric networks
8
+
9
+ Main components:
10
+ - BibliometricDataLoader: For loading and normalizing bibliographic data
11
+ - BibliometricDataEnricher: For enriching data with additional metadata
12
+ - BibliometricNetworkAnalyzer: For extracting and analyzing networks
13
+ """
14
+
15
+ from bib2graph.consigue_los_articulos import BibliometricDataLoader
16
+ from bib2graph.enriquecimiento import BibliometricDataEnricher
17
+ from bib2graph.analisis_red import BibliometricNetworkAnalyzer
18
+ from bib2graph.models import *
19
+
20
+ __version__ = "0.1.0"