-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Robert Petryszak
committed
May 13, 2020
1 parent
02672dd
commit 8feec27
Showing
2 changed files
with
450 additions
and
599 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,71 @@ | ||
# Grant Outputs Notebook | ||
## [FREYA](https://www.project-freya.eu/en) WP2 [User Story 1](https://github.com/datacite/freya/issues/30): As a data center, I want to see the citations of publications that use my repository for the underlying data, so that I can demonstrate the impact of our repository. | ||
|
||
### Jupyter Notebook: | ||
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/datacite/pidgraph-notebooks-python/master?filepath=user-story-1-datacenter-publication-citations%2Fpy-datacenter-publication-citations.ipynb) | ||
|
||
### Examples of GraphQL Queries Used: | ||
|
||
* Get works matching the query "Lake Malawi" from [the Global Biodiversity Information Facility](https://www.gbif.org/) | ||
|
||
``` | ||
{ | ||
pangaea: repository(id: "gbif.gbif") { | ||
id | ||
name | ||
citationCount | ||
works(query:"Lake Malawi") { | ||
totalCount | ||
years { | ||
title | ||
count | ||
} | ||
nodes { | ||
id | ||
type | ||
publicationYear | ||
bibtex | ||
titles { | ||
title | ||
} | ||
citationCount | ||
viewCount | ||
downloadCount | ||
} | ||
} | ||
} | ||
} | ||
``` | ||
|
||
* Get citations of work [IUCN Red List assessment occurrence data for freshwater species native to the Lake Malawi/Nyasa/Niassa Catchment](https://doi.org/10.15468/1z5fn8) | ||
|
||
``` | ||
{ | ||
work(id: "https://doi.org/10.15468/1z5fn8") { | ||
id | ||
titles { | ||
title | ||
} | ||
type | ||
publicationYear | ||
citations(first: 75) { | ||
totalCount | ||
nodes { | ||
id | ||
type | ||
publicationYear | ||
repository { | ||
id | ||
name | ||
} | ||
titles { | ||
title | ||
} | ||
bibtex | ||
citationCount | ||
viewCount | ||
downloadCount | ||
} | ||
} | ||
} | ||
} | ||
``` |
Oops, something went wrong.