PID Graph GraphQL Example Co-Author Graph

User story

As a bibliometrician, I want to know all the co-authors of a particular researcher, so that I can do a network analysis of the researcher’s collaborations.

Query strategy

This query fetches research outputs with a DOI that are linked to a particular ORCID ID from two different sources (Crossref and DataCite). The query then returns all the information (the nodes and edges) needed to generate a co-author graph, e.g. using a Jupyter notebook.

Why GraphQL

We can generate the required information with a single GraphQL query, and the results can be further processed to generate a co-author graph.

Use the following query in the GraphQL client at https://api.datacite.org/graphql

{
  person(id: "https://orcid.org/0000-0001-5934-7525") {
    id
    name
    citationCount
    works(first: 250) {
      totalCount
      nodes {
        id
        type
        creators {
          id
          name
        }
      }
    }
  }
}

Related GitHub issues from 2018 FREYA workshop: