Async call return data.
But we need to find current way to propagate them to component.
In SongServiceSparqlClient returns a Promise<Song[]> running SPARQL queries, we need to expose this data to components as BehaviorSubject<Song[]> and this components subscribe to them. The call to API should be ideally run once.
As this is not a simple task and we haven't live SPARQL endpoint to query yet, it's probably better to import data synchronously from static jsonld file at the moment.
Async call return data. But we need to find current way to propagate them to component.
In
SongService
SparqlClient
returns aPromise<Song[]>
running SPARQL queries, we need to expose this data to components asBehaviorSubject<Song[]>
and this components subscribe to them. The call to API should be ideally run once.As this is not a simple task and we haven't live SPARQL endpoint to query yet, it's probably better to import data synchronously from static jsonld file at the moment.