Skip to content
Snippets Groups Projects
Commit a7ae0fcd authored by vuillaut's avatar vuillaut
Browse files

adding example notebook

parent ea0429e1
No related branches found
No related tags found
1 merge request!15api
Pipeline #135187 failed
%% Cell type:markdown id:4a25feec tags:
# Find ESCAPE OSSR records
%% Cell type:code id:dbde9b19 tags:
``` python
from eossr.api import Ossr, get_all_ossr_records, pprint_record
```
%% Cell type:code id:2fe017bc tags:
``` python
ossr_records = get_all_ossr_records()
```
%% Cell type:code id:5eb34293 tags:
``` python
len(ossr_records)
```
%% Output
15
%% Cell type:markdown id:93b033a0 tags:
Records are objects containing data and metadata sent by Zenodo API
%% Cell type:code id:f88ebfd3 tags:
``` python
print(ossr_records[0])
```
%% Output
{'conceptdoi': '10.5281/zenodo.5176088', 'conceptrecid': '5176088', 'created': '2021-08-16T07:21:15.005975+00:00', 'doi': '10.5281/zenodo.5176089', 'files': [{'bucket': '409f3f8e-cb73-4a10-b718-3b8fc238a616', 'checksum': 'md5:eab8fbaa4c318cbd75629eb6a7719ecb', 'key': 'EOSC_SYMPOSIUM_2021_Report.pdf', 'links': {'self': 'https://zenodo.org/api/files/409f3f8e-cb73-4a10-b718-3b8fc238a616/EOSC_SYMPOSIUM_2021_Report.pdf'}, 'size': 1654918, 'type': 'pdf'}], 'id': 5176089, 'links': {'badge': 'https://zenodo.org/badge/doi/10.5281/zenodo.5176089.svg', 'bucket': 'https://zenodo.org/api/files/409f3f8e-cb73-4a10-b718-3b8fc238a616', 'conceptbadge': 'https://zenodo.org/badge/doi/10.5281/zenodo.5176088.svg', 'conceptdoi': 'https://doi.org/10.5281/zenodo.5176088', 'doi': 'https://doi.org/10.5281/zenodo.5176089', 'html': 'https://zenodo.org/record/5176089', 'latest': 'https://zenodo.org/api/records/5176089', 'latest_html': 'https://zenodo.org/record/5176089', 'self': 'https://zenodo.org/api/records/5176089'}, 'metadata': {'access_right': 'open', 'access_right_category': 'success', 'communities': [{'id': 'envri'}, {'id': 'eosc_synergy'}, {'id': 'eoscsecretariat'}, {'id': 'escape2020'}, {'id': 'expands'}, {'id': 'ni4os-europe'}, {'id': 'sshoc'}], 'contributors': [{'affiliation': 'Trust-IT Services', 'name': 'Ferguson, Nicholas', 'orcid': '0000-0001-5523-6430', 'type': 'WorkPackageLeader'}], 'creators': [{'affiliation': 'Technopolis Group Belgium', 'name': 'Bertacchini, Veronica'}, {'affiliation': 'Trust-IT Services', 'name': 'Drago, Federico', 'orcid': '0000-0002-1333-4478'}, {'affiliation': 'TU Wien', 'name': 'Flicker, Katharina', 'orcid': '0000-0001-6040-2798'}, {'affiliation': 'KIT', 'name': 'Gebreyesus, Netsanet'}, {'affiliation': 'GÉANT', 'name': 'Grant, Annabel'}, {'affiliation': 'CERN', 'name': 'Jones, Bob', 'orcid': '0000-0001-9092-4589'}, {'affiliation': 'CSC-IT Center for Science', 'name': 'Liinamaa, Iiris'}, {'affiliation': 'CSC-IT Center for Science', 'name': 'Märkälä, Anu'}, {'affiliation': 'Athena Research Center', 'name': 'Marinos-Kouris, Christos'}, {'affiliation': 'GO FAIR Foundation', 'name': 'Meerman, Bert', 'orcid': '0000-0002-0071-2660'}, {'affiliation': 'TU Wien', 'name': 'Saurugger, Bernd', 'orcid': '0000-0001-5730-3983'}, {'affiliation': 'Trust-IT Services', 'name': 'Smith, Zachary', 'orcid': '0000-0002-9984-008X'}], 'description': '<p>The EOSC Symposium 2021 provided a key engagement opportunity for the EOSC community after the European Open Science Cloud finally entered its highly-anticipated implementation phase in 2021. Delivered online to just under 1,000 EOSC stakeholders from over 63 different countries, this was not only the largest EOSC Symposium yet, but it was also an essential opportunity for convergence and alignment on principles and priorities.</p>\n\n<p>The EOSC Association will play an important role in this phase. With already over 210 member and observer organisations from across Europe, the Association represents a single voice for the advocacy and representation of the broader EOSC Stakeholder community in Europe, promoting alignment of EU research policy and priorities.</p>\n\n<p>The Association will continuously develop the EOSC Strategic Research and Innovation Agenda (SRIA) which will influence future EOSC activities at institutional, national and EU level (including the EOSC-related work programmes in Horizon Europe). This living document will adapt to the changing EOSC ecosystem and the needs of EOSC stakeholders. The Association is setting up a series of Advisory Groups (AG) with Task Forces (TF) to engage with the EOSC community around priority areas, namely:</p>\n\n<ul>\n\t<li>Implementation of EOSC</li>\n\t<li>Metadata and Data Quality</li>\n\t<li>Research Careers and Curricula</li>\n\t<li>Sustaining&nbsp;EOSC</li>\n\t<li>Technical Challenges on EOSC</li>\n</ul>\n\n<p>The Symposium was the first opportunity for the Association to present the draft charters of the Task Forces. A key objective of the event was also for the Association to understand what work has been carried out, is in progress, or is planned on the topics of the AGs and TFs. A call for contributions ran throughout May 2021, with a total of 137 applications received. Through presentations, lightning talks, and panels, over 70 community members were able to highlight key findings and recommendations for the AGs and TFs to take into consideration for their work.</p>', 'doi': '10.5281/zenodo.5176089', 'grants': [{'acronym': 'EOSCsecretariat.eu', 'code': '831644', 'funder': {'acronyms': [], 'doi': '10.13039/501100000780', 'links': {'self': 'https://zenodo.org/api/funders/10.13039/501100000780'}, 'name': 'European Commission'}, 'links': {'self': 'https://zenodo.org/api/grants/10.13039/501100000780::831644'}, 'program': 'H2020', 'title': 'EOSCsecretariat.eu'}], 'keywords': ['EOSC', 'Open Science', 'Horizon Europe', 'Interoperability'], 'language': 'eng', 'license': {'id': 'CC-BY-4.0'}, 'publication_date': '2021-08-10', 'related_identifiers': [{'identifier': '10.5281/zenodo.5176088', 'relation': 'isVersionOf', 'scheme': 'doi'}], 'relations': {'version': [{'count': 1, 'index': 0, 'is_last': True, 'last_child': {'pid_type': 'recid', 'pid_value': '5176089'}, 'parent': {'pid_type': 'recid', 'pid_value': '5176088'}}]}, 'resource_type': {'subtype': 'report', 'title': 'Report', 'type': 'publication'}, 'title': 'EOSC Symposium 2021 Report'}, 'owners': [91736], 'revision': 8, 'stats': {'downloads': 462.0, 'unique_downloads': 395.0, 'unique_views': 498.0, 'version_downloads': 462.0, 'version_unique_downloads': 395.0, 'version_unique_views': 498.0, 'version_views': 519.0, 'version_volume': 764572116.0, 'views': 519.0, 'volume': 764572116.0}, 'updated': '2021-08-24T14:27:14.603504+00:00'}
%% Cell type:markdown id:cb5f905e tags:
You can use `pprint_record` to display minimal information about a `Record`:
%% Cell type:code id:a9ec3d38 tags:
``` python
pprint_record(ossr_records[0])
```
%% Output
=== Record #5176089 : EOSC Symposium 2021 Report ===
<p>The EOSC Symposium 2021 provided a key engagement opportunity for the EOSC community after the European Open Science Cloud finally entered its highly-anticipated implementation phase in 2021. Delivered online to just under 1,000 EOSC stakeholders from over 63 different countries, this was not only the largest EOSC Symposium yet, but it was also an essential opportunity for convergence and alignment on principles and priorities.</p>
<p>The EOSC Association will play an important role in this phase. With already over 210 member and observer organisations from across Europe, the Association represents a single voice for the advocacy and representation of the broader EOSC Stakeholder community in Europe, promoting alignment of EU research policy and priorities.</p>
<p>The Association will continuously develop the EOSC Strategic Research and Innovation Agenda (SRIA) which will influence future EOSC activities at institutional, national and EU level (including the EOSC-related work programmes in Horizon Europe). This living document will adapt to the changing EOSC ecosystem and the needs of EOSC stakeholders. The Association is setting up a series of Advisory Groups (AG) with Task Forces (TF) to engage with the EOSC community around priority areas, namely:</p>
<ul>
<li>Implementation of EOSC</li>
<li>Metadata and Data Quality</li>
<li>Research Careers and Curricula</li>
<li>Sustaining&nbsp;EOSC</li>
<li>Technical Challenges on EOSC</li>
</ul>
<p>The Symposium was the first opportunity for the Association to present the draft charters of the Task Forces. A key objective of the event was also for the Association to understand what work has been carried out, is in progress, or is planned on the topics of the AGs and TFs. A call for contributions ran throughout May 2021, with a total of 137 applications received. Through presentations, lightning talks, and panels, over 70 community members were able to highlight key findings and recommendations for the AGs and TFs to take into consideration for their work.</p>
%% Cell type:code id:301723f4 tags:
``` python
```
%% Cell type:markdown id:0a8049f9 tags:
## Specific OSSR search
To make a specific OSSR search, you can use the `Ossr` class
%% Cell type:code id:e88cac03 tags:
``` python
ossr = Ossr()
```
%% Cell type:markdown id:868c10b5 tags:
### Based on a string
%% Cell type:code id:0dad88b3 tags:
``` python
records = ossr.search('template')
```
%% Cell type:code id:5e1d8124 tags:
``` python
len(records)
```
%% Output
1
%% Cell type:code id:f5a15764 tags:
``` python
pprint_record(records[0])
```
%% Output
=== Record #4923992 : ESCAPE template project ===
<p>An example of software project template for the ESCAPE 2020 European project</p>
%% Cell type:markdown id:c4b08fde tags:
### Using keywords:
%% Cell type:code id:f5cb8f77 tags:
``` python
cta_records = ossr.search('', keywords='CTA')
len(cta_records)
```
%% Output
2
%% Cell type:code id:019f21eb tags:
``` python
for record in cta_records:
pprint_record(record)
```
%% Output
=== Record #4419866 : IndexedConv/IndexedConv: v1.3 ===
<p>Update for PyTorch 1.7</p>
=== Record #3659184 : ctapipe_io_mchdf5 ===
<p>ctapipe plugin for reading and converting Monte-Carlo files (contains the same information as Simtel files)</p>
%% Cell type:code id:5f304419 tags:
``` python
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment