I am building an API to connect RDF data to a React front-end.
The data is stored across several datagraphs. The API has access to all datagraphs. React will call the API to get the data, then display it to users. Most UI views will require data from several different graphs.
For example:
Datastore1_Variable1 + Datastore2_Variable3 -> UserView1
Datastore1_Variable2 + Datastore3_Variable1 -> UserView2
It was my intention to build a service-oriented API where users call API/UserView1 to get all data required to build UserView1 in a single call.
However, I am being advised to build a seperate API per Datastore, and having React call each Datastore-API in turn. It seems to me this will require more roundtrip calls and doing complex joins at the front-end. The only reason seems to be: "this is how we've always done it".
Does a functional / efficiency reason exist why datagraphs should be exposed seperately?