Skip to content

Commit

Permalink
Addressed all the points in the 'Initial feedback user story 10 - gra…
Browse files Browse the repository at this point in the history
…nt outputs #1' github issue
  • Loading branch information
Robert Petryszak committed May 12, 2020
1 parent d36f5e6 commit 3cb4bc6
Show file tree
Hide file tree
Showing 3 changed files with 689 additions and 300 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ requests==2.22.0
six==1.13.0
urllib3==1.25.7
matplotlib==3.2.1
chord==0.0.11
50 changes: 48 additions & 2 deletions user-story-10-grant-outputs/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,49 @@
# Grant Outputs Notebook

## [FREYA](https://www.project-freya.eu/en) WP2 [User Story 10](https://github.com/datacite/freya/issues/45): As a funder, we want to be able to find all the outputs related to our awarded grants, including block grants such as doctoral training grants, for management info and looking at impact.
### Jupyter Notebook:
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/datacite/pidgraph-notebooks-python/master?filepath=user-story-10-grant-outputs%2Fpy-grant-outputs.ipynb)

### Examples of GraphQL Queries Used:
* Get outputs of [FREYA grant award](https://cordis.europa.eu/project/id/777523) from [European Commission](https://doi.org/10.13039/501100000780)

```GraphQL
{
funder(id: "https://doi.org/10.13039/501100000780") {
name
works(query: "fundingReferences.awardNumber:777523", first: 75) {
totalCount
nodes {
id
formattedCitation(style: "vancouver")
titles {
title
}
descriptions {
description
}
types {
resourceType
}
dates {
date
dateType
}
versionOfCount
creators {
id
name
}
fundingReferences {
funderIdentifier
funderName
awardNumber
awardTitle
}
citationCount
viewCount
downloadCount
}
}
}
}
```

0 comments on commit 3cb4bc6

Please sign in to comment.