time-agnostic-library 1.0.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,13 @@
1
+ ISC License (ISC)
2
+ ==================================
3
+ _Copyright 2022 Arcangelo Massari_
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any purpose with or
6
+ without fee is hereby granted, provided that the above copyright notice and this permission
7
+ notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
10
+ SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
11
+ THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
13
+ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1,460 @@
1
+ Metadata-Version: 2.3
2
+ Name: time-agnostic-library
3
+ Version: 1.0.0
4
+ Summary: time-agnostic-library is a Python ≥3.7 library that allows performing time-travel queries on RDF datasets compliant with the OCDM v2.0.1 provenance specification.
5
+ License: ISC
6
+ Keywords: rdf,provenance,opencitations,change-tracking,time-traversal query
7
+ Author: Arcangelo Massari
8
+ Author-email: arcangelo.massari@unibo.it
9
+ Requires-Python: >=3.9,<3.14
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Science/Research
12
+ Classifier: License :: OSI Approved
13
+ Classifier: License :: OSI Approved :: ISC License (ISCL)
14
+ Classifier: Natural Language :: English
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
+ Requires-Dist: SPARQLWrapper (==2.0.0)
24
+ Requires-Dist: lxml (>=5.1.0,<6.0.0)
25
+ Requires-Dist: psycopg2 (>=2.9.6,<3.0.0)
26
+ Requires-Dist: python_dateutil (>=2.8.2,<3.0.0)
27
+ Requires-Dist: rdflib (==6.3.2)
28
+ Requires-Dist: setuptools (>=68.2.2,<69.0.0)
29
+ Requires-Dist: tqdm (>=4.62.3,<5.0.0)
30
+ Requires-Dist: validators (>=0.20.0,<0.21.0)
31
+ Project-URL: Documentation, https://time-agnostic-library.readthedocs.io
32
+ Project-URL: Homepage, https://github.com/opencitations/time-agnostic-library
33
+ Project-URL: Repository, https://github.com/opencitations/time-agnostic-library
34
+ Description-Content-Type: text/markdown
35
+
36
+ [<img src="https://img.shields.io/badge/powered%20by-OpenCitations-%239931FC?labelColor=2D22DE" />](http://opencitations.net)
37
+ [![run_tests](https://github.com/opencitations/time-agnostic-library/actions/workflows/run_tests.yml/badge.svg)](https://github.com/opencitations/time-agnostic-library/actions/workflows/run_tests.yml)
38
+ ![Coverage](https://byob.yarr.is/arcangelo7/badges/opencitations-time-agnostic-library-coverage-main)
39
+ ![PyPI](https://img.shields.io/pypi/pyversions/time-agnostic-library)
40
+ [![PyPI version](https://badge.fury.io/py/time-agnostic-library.svg)](https://badge.fury.io/py/time-agnostic-library)
41
+ ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/opencitations/time-agnostic-library)
42
+
43
+ # time-agnostic-library
44
+
45
+ **time-agnostic-library** is a Python &ge;3.7 library that allows performing time-travel queries on RDF datasets compliant with the [OCDM v2.0.1](https://figshare.com/articles/Metadata_for_the_OpenCitations_Corpus/3443876) provenance specification.
46
+
47
+ The package was tested on **Blazegraph**, **GraphDB**, **Apache Jena Fuseki**, and **OpenLink Virtuoso**, and it is fully compatible with these triplestores.
48
+
49
+ Documentation can be found here: [https://time-agnostic-library.readthedocs.io](https://time-agnostic-library.readthedocs.io).
50
+
51
+ ## Table of Contents
52
+
53
+ - [User's guide](#users-guide)
54
+ * [Version materialization](#version-materialization)
55
+ * [Single-version structured query](#single-version-structured-query)
56
+ * [Cross-version structured query](#cross-version-structured-query)
57
+ * [Single-delta structured query](#single-delta-structured-query)
58
+ * [Cross-delta structured query](#cross-delta-structured-query)
59
+ * [Configuration file](#configuration-file)
60
+ - [Developer's guide](#developers-guide)
61
+ * [First steps](#first-steps)
62
+ * [How to run the tests](#how-to-run-the-tests)
63
+ * [How to build the documentation](#how-to-build-the-documentation)
64
+ * [How to benchmark](#how-to-benchmark)
65
+
66
+ ## User's guide
67
+
68
+ This package can be installed with **pip**:
69
+
70
+ ``` bash
71
+ pip install time-agnostic-library
72
+ ```
73
+
74
+ The library allows five types of queries: versions materializations, single-version structured queries, cross-version structured queries, single-delta structured queries and cross-delta structured queries.
75
+
76
+ ### Version materialization
77
+
78
+ Obtaining a version materialization means returning an entity version at a given time. Time can be an interval, an instant, a before or an after.
79
+
80
+ To do so, create an instance of the **AgnosticEntity** class, passing as an argument the entity URI (RES_URI) and the configuration file path (CONFIG_PATH). For more information about the configuration file, see [Configuration file](#configuration-file). Finally, run the **get_state_at_time method**, passing the time of interest as an argument and, if provenance metadata are needed, True to the **include_prov_metadata** field.
81
+
82
+ The specified time is a tuple, in the form (START, END). If one of the two values is None, only the other is considered. The time can be specified using any existing standard.
83
+
84
+ ``` python
85
+ agnostic_entity = AgnosticEntity(res=RES_URI, config_path=CONFIG_PATH)
86
+ agnostic_entity.get_state_at_time(time=(START, END), include_prov_metadata=True)
87
+ ```
88
+
89
+ The output is always a tuple of three elements: the first is a dictionary that associates graphs and timestamps within the specified interval; the second contains the snapshots metadata of which the states has been returned, the third is a dictionary including the other snapshots' provenance metadata if **include_prov_metadata** is True, None if False.
90
+
91
+ ``` python
92
+ (
93
+ {
94
+ TIME_1: ENTITY_GRAPH_AT_TIME_1,
95
+ TIME_2: ENTITY_GRAPH_AT_TIME_2
96
+ },
97
+ {
98
+ SNAPSHOT_URI_AT_TIME_1: {
99
+ 'generatedAtTime': TIME_1,
100
+ 'wasAttributedTo': ATTRIBUTION,
101
+ 'hadPrimarySource': PRIMARY_SOURCE
102
+ },
103
+ SNAPSHOT_URI_AT_TIME_2: {
104
+ 'generatedAtTime': TIME_2,
105
+ 'wasAttributedTo': ATTRIBUTION,
106
+ 'hadPrimarySource': PRIMARY_SOURCE
107
+ }
108
+ },
109
+ {
110
+ OTHER_SNAPSHOT_URI_1: {
111
+ 'generatedAtTime': GENERATION_TIME,
112
+ 'wasAttributedTo': ATTRIBUTION,
113
+ 'hadPrimarySource': PRIMARY_SOURCE
114
+ },
115
+ OTHER_SNAPSHOT_URI_2: {
116
+ 'generatedAtTime': GENERATION_TIME,
117
+ 'wasAttributedTo': ATTRIBUTION,
118
+ 'hadPrimarySource': PRIMARY_SOURCE
119
+ }
120
+ }
121
+ )
122
+ ```
123
+
124
+ On the other hand, if the whole entity's history is required, use the **get_history** method.
125
+
126
+ ``` python
127
+ agnostic_entity = AgnosticEntity(res=RES_URI, config_path=CONFIG_PATH)
128
+ agnostic_entity.get_history(include_prov_metadata=True)
129
+ ```
130
+
131
+ In this case, the output is always a two-element tuple. The first is a dictionary containing all the versions of a given resource. The second is a dictionary containing all the provenance metadata linked to that resource if **include_prov_metadata** is True, None if False.
132
+
133
+ ``` python
134
+ (
135
+ {
136
+ RES_URI: {
137
+ TIME_1: ENTITY_GRAPH_AT_TIME_1,
138
+ TIME_2: ENTITY_GRAPH_AT_TIME_2
139
+ }
140
+ },
141
+ {
142
+ RES_URI: {
143
+ SNAPSHOT_URI_AT_TIME_1': {
144
+ 'generatedAtTime': GENERATION_TIME,
145
+ 'wasAttributedTo': ATTRIBUTION,
146
+ 'hadPrimarySource': PRIMARY_SOURCE
147
+ },
148
+ SNAPSHOT_URI_AT_TIME_2: {
149
+ 'generatedAtTime': GENERATION_TIME,
150
+ 'wasAttributedTo': ATTRIBUTION,
151
+ 'hadPrimarySource': PRIMARY_SOURCE
152
+ }
153
+ }
154
+ )
155
+ ```
156
+
157
+ Finally, the history of an entity and all related entities, along with their provenance metadata, can be obtained by switching to True the **related_entities_history** argument.
158
+
159
+ ``` python
160
+ agnostic_entity = AgnosticEntity(res=RES_URI, related_entities_history=True, config_path=CONFIG_PATH)
161
+ agnostic_entity.get_history(include_prov_metadata=True)
162
+ ```
163
+
164
+ ### Single-version structured query
165
+
166
+ Performing a single-version structured query means running a SPARQL query on a specified version. A version can be a time interval, an instant, a before or an after.
167
+
168
+ To obtain this result, instantiate the **VersionQuery** class, passing as an argument the SPARQL query string (QUERY_STRING), the time of interest and the configuration file's path (CONFIG_PATH). Finally, execute the **run_agnostic_query** method.
169
+
170
+ The specified time is a tuple, in the form (START, END). If one of the two values is None, only the other is considered. The time can be specified using any existing standard.
171
+
172
+ For more information about the configuration file, see [Configuration file](#configuration-file).
173
+
174
+ **Please note**: only SELECT queries are allowed.
175
+
176
+ ``` python
177
+ agnostic_query = VersionQuery(query=QUERY_STRING, on_time=(START, END), config_path=CONFIG_PATH)
178
+ agnostic_query.run_agnostic_query()
179
+ ```
180
+
181
+ The output is a dictionary in which the keys are the snapshots relevant to that query. The values correspond to sets of tuples containing the query results at the time specified by the key. The positional value of the elements in the tuples is equivalent to the variables indicated in the query.
182
+
183
+ ``` python
184
+ {
185
+ TIME: {
186
+ (VALUE_1_OF_VARIABLE_1, VALUE_1_OF_VARIABLE_2, VALUE_1_OF_VARIABLE_N),
187
+ (VALUE_2_OF_VARIABLE_1, VALUE_2_OF_VARIABLE_2, VALUE_2_OF_VARIABLE_N),
188
+ (VALUE_N_OF_VARIABLE_1, VALUE_N_OF_VARIABLE_2, VALUE_N_OF_VARIABLE_N)
189
+ }
190
+ }
191
+ ```
192
+
193
+ ### Cross-version structured query
194
+
195
+ Performing a cross-version structured query means running a SPARQL query on all the dataset's versions.
196
+
197
+ To obtain this result, instantiate the **VersionQuery** class, passing as an argument the SPARQL query string (QUERY_STRING) and the configuration file's path (CONFIG_PATH). Finally, execute **the run_agnostic_query** method.
198
+
199
+ For more information about the configuration file, see [Configuration file](#configuration-file).
200
+
201
+ **Please note**: only SELECT queries are allowed.
202
+
203
+ ``` python
204
+ agnostic_query = VersionQuery(query=QUERY_STRING, config_path=CONFIG_PATH)
205
+ agnostic_query.run_agnostic_query()
206
+ ```
207
+
208
+ The output is a dictionary in which the keys are the snapshots relevant to that query. The values correspond to sets of tuples containing the query results at the time specified by the key. The positional value of the elements in the tuples is equivalent to the variables indicated in the query.
209
+
210
+ ``` python
211
+ {
212
+ TIME_1: {
213
+ (VALUE_1_OF_VARIABLE_1, VALUE_1_OF_VARIABLE_2, VALUE_1_OF_VARIABLE_N),
214
+ (VALUE_2_OF_VARIABLE_1, VALUE_2_OF_VARIABLE_2, VALUE_2_OF_VARIABLE_N),
215
+ (VALUE_N_OF_VARIABLE_1, VALUE_N_OF_VARIABLE_2, VALUE_N_OF_VARIABLE_N)
216
+ },
217
+ TIME_2: {
218
+ (VALUE_1_OF_VARIABLE_1, VALUE_1_OF_VARIABLE_2, VALUE_1_OF_VARIABLE_N),
219
+ (VALUE_2_OF_VARIABLE_1, VALUE_2_OF_VARIABLE_2, VALUE_2_OF_VARIABLE_N),
220
+ (VALUE_N_OF_VARIABLE_1, VALUE_N_OF_VARIABLE_2, VALUE_N_OF_VARIABLE_N)
221
+ },
222
+ TIME_N: {
223
+ (VALUE_1_OF_VARIABLE_1, VALUE_1_OF_VARIABLE_2, VALUE_1_OF_VARIABLE_N),
224
+ (VALUE_2_OF_VARIABLE_1, VALUE_2_OF_VARIABLE_2, VALUE_2_OF_VARIABLE_N),
225
+ (VALUE_N_OF_VARIABLE_1, VALUE_N_OF_VARIABLE_2, VALUE_N_OF_VARIABLE_N)
226
+ }
227
+ }
228
+ ```
229
+
230
+ ### Single-delta structured query
231
+
232
+ Performing a single-delta query means that a structured queries must be satisfied on a specific change instance of the dataset. This information demand particularly focuses on the differences between two versions, which are typically but not always consecutive.
233
+
234
+ To obtain this result, instantiate the **DeltaQuery** class, passing as an argument the SPARQL query string, the time of interest, a set of properties, and the configuration file's path. Finally, execute the **run_agnostic_query** method.
235
+
236
+ The query string (QUERY_STRING) is useful to identify the entities whose change you want to investigate.
237
+
238
+ The specified time is a tuple, in the form (START, END). If one of the two values is None, only the other is considered. The time can be specified using any existing standard.
239
+
240
+ The set of properties (PROPERTIES_SET) narrows the field to those entities where the properties specified in the set have changed. If no property was indicated, any changes are considered.
241
+
242
+ For more information about the configuration file (CONFIG_PATH), see [Configuration file](#configuration-file).
243
+
244
+ **Please note**: only SELECT queries are allowed.
245
+
246
+ ``` python
247
+ agnostic_entity = DeltaQuery(query=QUERY_STRING, on_time=(START, END), changed_properties=PROPERTIES_SET, config_path=CONFIG_PATH)
248
+ agnostic_entity.run_agnostic_query()
249
+ ```
250
+
251
+ The output is a dictionary that reports the modified entities, when they were created, modified, and deleted. Moreover, changes are reported as SPARQL UPDATE queries.
252
+
253
+ ``` python
254
+ {
255
+ RES_URI_1: {
256
+ "created": TIMESTAMP_CREATION,
257
+ "modified": {
258
+ TIMESTAMP_1: UPDATE_QUERY_1,
259
+ TIMESTAMP_2: UPDATE_QUERY_2,
260
+ TIMESTAMP_N: UPDATE_QUERY_N
261
+ },
262
+ "deleted": TIMESTAMP_DELETION
263
+ },
264
+ RES_URI_2: {
265
+ "created": TIMESTAMP_CREATION,
266
+ "modified": {
267
+ TIMESTAMP_1: UPDATE_QUERY_1,
268
+ TIMESTAMP_2: UPDATE_QUERY_2,
269
+ TIMESTAMP_N: UPDATE_QUERY_N
270
+ },
271
+ "deleted": TIMESTAMP_DELETION
272
+ },
273
+ RES_URI_N: {
274
+ "created": TIMESTAMP_CREATION,
275
+ "modified": {
276
+ TIMESTAMP_1: UPDATE_QUERY_1,
277
+ TIMESTAMP_2: UPDATE_QUERY_2,
278
+ TIMESTAMP_N: UPDATE_QUERY_N
279
+ },
280
+ "deleted": TIMESTAMP_DELETION
281
+ },
282
+ }
283
+ ```
284
+
285
+ ### Cross-delta structured query
286
+
287
+ Performing a cross-delta query means that a structured queries must be satisfied across the differences of the dataset, thus allowing for fully fledged evolution studies.
288
+
289
+ To obtain this result, instantiate the **DeltaQuery** class, passing as an argument the SPARQL query string, a set of properties, and the configuration file's path. Finally, execute the **run_agnostic_query** method.
290
+
291
+ The query string (QUERY_STRING) is useful to identify the entities whose change you want to investigate.
292
+
293
+ The set of properties (PROPERTIES_SET) narrows the field to those entities where the properties specified in the set have changed. If no property was indicated, any changes are considered.
294
+
295
+ For more information about the configuration file (CONFIG_PATH), see [Configuration file](#configuration-file).
296
+
297
+ **Please note**: only SELECT queries are allowed.
298
+
299
+ ``` python
300
+ agnostic_entity = DeltaQuery(query=QUERY_STRING, changed_properties=PROPERTIES_SET, config_path=CONFIG_PATH)
301
+ agnostic_entity.run_agnostic_query()
302
+ ```
303
+
304
+ The output is a dictionary that reports the modified entities, when they were created, modified, and deleted. Changes are reported as SPARQL UPDATE queries. If the entity was not created or deleted within the indicated range, the "created" or "deleted" value is None. On the other hand, if the entity does not exist within the input interval, the "modified" value is an empty dictionary.
305
+
306
+ ``` python
307
+ {
308
+ RES_URI_1: {
309
+ "created": TIMESTAMP_CREATION,
310
+ "modified": {
311
+ TIMESTAMP_1: UPDATE_QUERY_1,
312
+ TIMESTAMP_2: UPDATE_QUERY_2,
313
+ TIMESTAMP_N: UPDATE_QUERY_N
314
+ },
315
+ "deleted": TIMESTAMP_DELETION
316
+ },
317
+ RES_URI_2: {
318
+ "created": TIMESTAMP_CREATION,
319
+ "modified": {
320
+ TIMESTAMP_1: UPDATE_QUERY_1,
321
+ TIMESTAMP_2: UPDATE_QUERY_2,
322
+ TIMESTAMP_N: UPDATE_QUERY_N
323
+ },
324
+ "deleted": TIMESTAMP_DELETION
325
+ },
326
+ RES_URI_N: {
327
+ "created": TIMESTAMP_CREATION,
328
+ "modified": {
329
+ TIMESTAMP_1: UPDATE_QUERY_1,
330
+ TIMESTAMP_2: UPDATE_QUERY_2,
331
+ TIMESTAMP_N: UPDATE_QUERY_N
332
+ },
333
+ "deleted": TIMESTAMP_DELETION
334
+ },
335
+ }
336
+ ```
337
+
338
+ ### Configuration file
339
+
340
+ The configuration file is mainly used to indicate to the library where to search for data and provenance. In addition, some optional values can be set to make executions faster and more efficient.
341
+
342
+ - **dataset** (required)
343
+ - **triplestore_urls**: Specify a list of triplestore URLs containing data.
344
+ - **file_paths**: Specify a list of paths of files containing data.
345
+ - **provenance** (required)
346
+ - **triplestore_urls**: Specify a list of triplestore URLs containing provenance metadata.
347
+ - **file_paths** Specify a list of paths of files containing provenance metadata.
348
+ - **blazegraph_full_text_search**, **fuseki_full_text_search**, **virtuoso_full_text_search** (optional): Specify an affirmative Boolean value if Blazegraph, Fuseki or Virtuoso was used as a triplestore, and a textual index was built to speed up queries. The allowed values are "true", "1", 1, "t", "y", "yes", "ok", or "false", "0", 0, "n", "f", "no".
349
+ - **graphdb_connector_name** (optional): Specify the name of the Lucene connector if GraphDB was used as a triplestore and a textual index was built to speed up queries. For more information, see [https://graphdb.ontotext.com/documentation/free/general-full-text-search-with-connectors.html](https://graphdb.ontotext.com/documentation/free/general-full-text-search-with-connectors.html).
350
+ - **cache_triplestore_url** (optional): Specifies the triplestore URL to use as a cache to make queries faster. If your triplestore uses different endpoints for reading and writing (e.g. GraphDB), specify the endpoint for reading in the "endpoint" field and the endpoint for writing in the "update_endpoint" field. If there is only one endpoint (e.g. Blazegraph), specify it in both fields.
351
+
352
+ ``` json
353
+ {
354
+ "dataset": {
355
+ "triplestore_urls": ["TRIPLESTORE_URL_1", "TRIPLESTORE_URL_2", "TRIPLESTORE_URL_N"],
356
+ "file_paths": ["PATH_1", "PATH_2", "PATH_N"]
357
+ },
358
+ "provenance": {
359
+ "triplestore_urls": ["TRIPLESTORE_URL_1", "TRIPLESTORE_URL_2", "TRIPLESTORE_URL_N"],
360
+ "file_paths": ["PATH_1", "PATH_2", "PATH_N"]
361
+ },
362
+ "blazegraph_full_text_search": "no",
363
+ "fuseki_full_text_search": "no",
364
+ "virtuoso_full_text_search": "no",
365
+ "graphdb_connector_name": "CONNECTOR_NAME",
366
+ "cache_triplestore_url": {
367
+ "endpoint": "READ_ENDPOINT",
368
+ "update_endpoint": "UPDATE_ENDPOINT"
369
+ }
370
+ }
371
+ ```
372
+
373
+ ## Developer's guide
374
+
375
+ ### First steps
376
+ 1. Install Poetry:
377
+ ``` bash
378
+ pip install poetry
379
+ ```
380
+ 2. Clone this repository:
381
+ ``` bash
382
+ git clone https://github.com/opencitations/time-agnostic-library
383
+ cd ./time-agnostic-library
384
+ ```
385
+ 3. Install all the dependencies:
386
+ ``` bash
387
+ poetry install
388
+ ```
389
+ 4. Build the package (_output dir:_ `dist`):
390
+ ``` bash
391
+ poetry build
392
+ ```
393
+ 5. Globally install the package:
394
+ ``` bash
395
+ pip install ./dist/time-agnostic-library-<VERSION>.tar.gz
396
+ ```
397
+ 6. If everything went the right way, than you should be able to use `time_agnostic_library` in your Python modules as follows:
398
+ ``` python
399
+ from time_agnostic_library.agnostic_entity import AgnosticEntity
400
+ from time_agnostic_library.agnostic_query import AgnosticQuery
401
+ # ...
402
+ ```
403
+
404
+ ### How to run the tests
405
+
406
+ 1. Make sure that Java is installed on your computer.
407
+ 2. Simply launch the following command from the root folder:
408
+
409
+ ``` bash
410
+ poetry run test
411
+ ```
412
+
413
+ ### How to build the documentation
414
+
415
+ 1. Move inside the `docs` folder:
416
+ ``` bash
417
+ cd docs
418
+ ```
419
+ 2. Use the Makefile provided to build the docs:
420
+ + _on Windows_
421
+ ```
422
+ ./make.bat html
423
+ ```
424
+ + _on Linux and MacOs_
425
+ ```
426
+ make html
427
+ ```
428
+ 3. Open the `_build/html/index.html` file with a web browser of your choice!
429
+
430
+ ### How to benchmark
431
+
432
+ Two benchmarks were designed, one on the execution times and the other on the RAM. Moreover, all benchmarks are performed on four different triplestores: Blazegraph, GraphDB Free Edition, Apache Jena Fuseki, and OpenLink Virtuoso.
433
+
434
+ The dataset used for the benchmarks contains bibliographical information about scholarly works in the journal Scientometrics only if the DOI is known. The data was extracted via Crossref. It is a temporal dataset in which provenance information and change-tracking have been managed by adopting the OpenCitations Data Model. Moreover, the dataset contains information on all the cited academic works. Journals, bibliographic resources, and authors always appear unambiguously, without duplicates. Finally, heuristics have been applied to recover the DOI of the cited works in case Crossref did not provide such information.
435
+
436
+ In order to run the benchmark, do the following steps:
437
+ 1. Download the dataset from [10.5281/zenodo.7105258](https://doi.org/10.5281/zenodo.7105258).
438
+ 2. Extract `reproduce_results.zip`.
439
+ + _on Windows_
440
+
441
+ Execute `run_banchmarks.bat`
442
+ + _on Linux and MacOs_
443
+
444
+ Execute `run_banchmarks.sh`
445
+ 3. As the results become available, they can be read by opening `json_to_table.html` via a local server.
446
+
447
+ In the event that the execution should stop due to unforeseen causes, it will resume from where it was interrupted.
448
+
449
+ ## Contributing
450
+
451
+ We welcome contributions to the time-agnostic-library! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines on how to contribute, including:
452
+
453
+ - Setting up the development environment
454
+ - Testing procedures
455
+ - The release process
456
+ - Commit message format
457
+
458
+ ## Changelog
459
+
460
+ All notable changes to this project are documented in the [CHANGELOG.md](CHANGELOG.md) file. The project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html) and uses the [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) format.