You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -31,21 +37,21 @@ A framework for counting the recommender metrics
31
37
5. Configure `./preprocessor_common.py`, `./preprocessor.py` and `./rsmetrics.py` by editting the `config.yaml` or providing another with `-c`.
32
38
6. Run from terminal: `./preprocessor_common.py` in order to gather `users` and `resources` and store them in the `Datastore`:
33
39
```bash
34
-
./preprocessor_common.py # this will ingest users and resources [from scratch] by retrieving the data from 'cyfronet' provider (which is specified in the config file
35
-
./preprocessor_common.py -p cyfronet# equivalent to first one
36
-
./preprocessor_common.py -p cyfronet --use-cache # equivalent to first one but use the cache file to read resources instead of downloading them via the EOSC Marketplace
37
-
./preprocessor_common.py -p athena # currently is not working since users collection only exist in 'cyfronet'
40
+
./preprocessor_common.py # this will ingest users and resources [from scratch] by retrieving the data from 'marketplace_rs' provider (which is specified in the config file
41
+
./preprocessor_common.py -p marketplace_rs# equivalent to first one
42
+
./preprocessor_common.py -p marketplace_rs --use-cache # equivalent to first one but use the cache file to read resources instead of downloading them via the EOSC Marketplace
43
+
./preprocessor_common.py -p athena # currently is not working since users collection only exist in 'marketplace_rs'
38
44
```
39
45
7. Run from terminal: `./preprocessor.py -p <provider>` in order to gather `user_actions` and `recommendations` from the particular provider and store them in the `Datastore`:
40
46
```bash
41
-
./preprocessor.py # this will ingest user_actions and recommendations [from scratch] by retrieving the data from 'cyfronet' provider (which is specified in the config file
42
-
./preprocessor.py -p cyfronet# equivalent to first one
47
+
./preprocessor.py # this will ingest user_actions and recommendations [from scratch] by retrieving the data from 'marketplace_rs' provider (which is specified in the config file
48
+
./preprocessor.py -p marketplace_rs# equivalent to first one
43
49
./preprocessor.py -p athena # same procedure as the first one but for 'athena' provider
44
50
```
45
51
9. Run from terminal: `./rsmetrics.py -p <provider>` in order to gather the respective data (`users`, `resources`, `user_actions` and `recommendations`), calculate `statistics` and `metrics` and store them in the `Datastore`, concerning that particular provider:
46
52
```bash
47
-
./rsmetrics.py # this will calculate and store statistics and metrics concerning data (users, resources, user_actions and recommendations) concerning the specified provider (which by default is 'cyfronet')
48
-
./rsmetrics.py -p cyfronet# equivalent to first one
53
+
./rsmetrics.py # this will calculate and store statistics and metrics concerning data (users, resources, user_actions and recommendations) concerning the specified provider (which by default is 'marketplace_rs')
54
+
./rsmetrics.py -p marketplace_rs# equivalent to first one
49
55
./rsmetrics.py -p athena # same procedure as the first one for 'athena' provider
50
56
```
51
57
@@ -92,16 +98,36 @@ optional arguments:
92
98
93
99
### Utilities
94
100
95
-
#### Get service catalog script (./get_service_catalog.py)
101
+
#### Get item catalog script (./get_catalog.py)
102
+
103
+
This script contacts EOSC Marketplace remote service api and generates a csv with a list of all available items of a specific catalog (e.g. services, datasets, trainings, publications, data_sources, ), their name, id and url
96
104
97
-
This script contacts EOSC Marketplace catalog and generates a csv with a list of all available services, their name, id and url
-`-u` or `-url`: the endpoint url of the marketplace search service
114
+
-`-o` or `--output`: this is the output csv file (e.g. `./service_catalog.csv` or `./training_catalog.csv`) - optional
115
+
-`-b` or `--batch`: because search service returns results with pagination this configures the batch for each retrieval (number of items per request) - optional
116
+
-`-l` or `--limit`: (optional) the user can specify a limit of max items to be retrieves (this is handy for large catalogs if you want to receive a subset) - optional
117
+
-`-c` or `--category`: the category of list of items you want to retrieve
118
+
-`-d` or `--datastore`: mongodb destination database uri to store the results into (e.g. `mongodb://localhost:27017/rsmetrics`) - optional
119
+
-`-p` or `--providers`: state in a comma-separated list wich providers (engines) handle the items of the specific category
120
+
currently supported category types for marketplace:
121
+
-`service`
122
+
-`training`
123
+
-`dataset` (this is for items of the `DATA` catalog)
124
+
-`data_source` (this is for items of the `DATASOURCES` catalog)
125
+
-`publication`
126
+
-`guideline` (this is for items of the `INTEROPERABILITY GUIDELINES` catalog)
127
+
-`software`
128
+
-`bundle`
129
+
-`other`
130
+
105
131
##### Serve Evaluation Reports as a Service
106
132
107
133
The `webservice` folder hosts a simple webservice implemented in Flask framework which can be used to host the report results.
0 commit comments