Retrieve from Research Graph a PID-Graph on basis of a certrain PID

From @ChrisBaers on Tue Aug 21 2018 16:27:45 GMT+0000 (UTC)

I would like to see an API (Maybe this is already existing) were I can search on a certain PID and retrieve all relation to this PID. Maybe set how many steps you want to go.

Copied from original issue:

From @mfenner on Tue Aug 21 2018 19:51:22 GMT+0000 (UTC)

I think that is what we are building for PID Graph, and parts of this already exist. For example Crossref and DataCite Event Data, which currently give you one step connections. You can query per DOI, here are relations for DANS DOIs:

Please how one can express what Chris wants in GraphQL, i.e. defining how many “hops” you want to go in your graph from a certain node - not defining the exact types of nodes or relations you want to go through, just a number of hops (relations leading from/to initial node)? Any example, e.g. against DataCite GraphQL endpoint, will be appreciated.

GraphQL requires specific fields in the query. As system administrator you can limit the number of “hops” to avoid very expensive queries that would essentially fetch everything.